<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../../css/mui.min.css">
		<link rel="stylesheet" href="../../css/mui.picker.min.css" />
		<link rel="stylesheet" href="../../css/iconfont.css">
		<style>
			.mui-content-padded{margin:5px 0 0 0;}
			.mui-row-list span{float: left; line-height:33px; width:20%;}
			.mui-row-list select{float: left; line-height:14px; font-size:14px; margin-top:2px; margin-left: 5px;}
			.mui-btn-block{margin-bottom:0; padding:6px;}
			.mui-col-sm-12{ border-top: 1px solid #D1D1D1; width:100%; padding-top:5px; font-size:14px;}
			input[type="text"]{height:30px; margin-bottom: 5px;}
			input[readonly="readonly"]{ text-align: left; padding-left: 5px; padding-right: 0;}
			input{border-width: 0; height: 26px; float: right; text-align: right; padding-right: 15px;}
			form:before{ background: none !important; border: none !important;}
			.mui-switch:before {content: '否'; color: #999;}
			.mui-switch.mui-active:before {content: '是'; color: #fff;}
			.mui-switch.two:before {content: '正常'; color: #999;}
			.mui-switch.two.mui-active.two:before {content: '撤销'; color: #fff;}
			.mui-table-view-cell.mui-active{ display:block;}
			.border0{border-width: 0; border-bottom: #dddddd 1px solid;}
			.ui-alert{font-size: 14px;}
			#Popup {
				width: 0px;
				height: 0px;
				background: red;
				position: fixed;
				top: 70%;
				left: 50%;
			}
			.mui-popover{
				width: 300px;
			}
			.mui-popover .mui-popover-arrow:after {
				width: 0px;
			}
			.mui-switch{
				border-color: #fd933b;
				background-color: #fd933b;
				border-width: 1px;
			}
			.mui-switch:before {content: '无'; color: #fff;}
			.mui-switch.mui-active:before {content: '有'; color: #fff;}
			/* #mySwitch2:before {content: '哈哈'; color: #fff;}
			#mySwitch2.mui-active:before {content: '是'; color: #fff;} */
			.mui-switch.mui-active {
				border-color: #007AFF;
				background-color: #007AFF;
			}
			.popover-cont ul{
				margin-top: 5px; 
				margin: 0; 
				padding: 0; 
				list-style: none; 
				background: #ffffff;
			}
			.table{
				width: 100%;
			}
			.thead{
				width: 100%;
				border: 1px solid #007AFF;
			}
			.thead tr{
				 width: 100%; 
				 background-color: #007AFF;
				 height: 20px;
			}
			.thead tr th{
				color: #ffffff;
				border-right: 1px solid #ffffff;
				text-align: center;
				font-family: "microsoft yahei";
				font-size: 14px;
				line-height: 20px;
			}
			.tbody{
				width: 100%;
				border: 1px solid #007AFF;
			}
			.tbody tr{
				 width: 100%; 
				 height: 20px;
			}
			.tbody tr td{
				color: #000;
				border: 1px solid #007AFF;
				text-align: center;
				font-family: "microsoft yahei";
				font-size: 14px;
				line-height: 20px;
			}
			.div-tab{
				width: 100%; 
				height: 200px; 
				overflow-y: scroll;
			}
			.div-tab::-webkit-scrollbar {
				display: none;
			}
			.submit{
				margin:0 auto 10px auto; 
				width:200px; 
				height:35px; 
				line-height: 35px; 
				background-color:#007AFF; 
				text-align: center; 
				color: #FFFFFF; 
				border-radius: 10px;
			}
			.mui-ul-check{ width: 100%; margin: 0; padding: 0;}
			.mui-ul-check li{float: left; list-style-type:none; text-align: center; padding:5px; margin:2px; border:1px solid #D1D1D1;}
			.mui-ul-check li.on{ background-color:#007AFF; color:#FFFFFF; float: left; list-style-type:none; text-align: center; padding:5px; margin:2px;}
			.mui-ul-check_1{ width: 100%; margin: 0; padding: 0;}
			.mui-ul-check_1 div{ margin: 0!important; padding: 5px 0!important;}
			.mui-ul-check_1 div.mui-table-view-cell:after{right: 0px; left: 0px;}
			.mui-ul-check_1 a{ margin: 0!important; padding: 0!important;}
			.mui-navigate-right:after{right: 0;}
			.mui-ul-check_1 li{float: left; list-style-type:none; text-align: center; padding:0px; margin:0px; border:1px solid #D1D1D1; font-size: 14px; width: 120px; line-height: 26px;}
			.mui-ul-check_1 li.on{ background-color:#007AFF; color:#FFFFFF; float: left; list-style-type:none; text-align: center; padding:0px; margin:0px;}
		</style>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title" id="high_id">基本信息建档</h1>
		</header>
		<div class="mui-conten" style="margin-top:50px;">
			<ul class="mui-table-view">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<div style="margin:0; padding: 0;" id="death_p">
						<li class="mui-table-view-cell">
							<a style="float: left; font-size: 14px; width: 110px; line-height: 26px;">健康档案号</a>
							<input  id='archives' class="ui-alert border0" placeholder="" style="width:210px; float: right;"/>
						</li>
						<li class="mui-table-view-cell">
							<a style="float: left; font-size: 14px; width: 90px; line-height: 26px;">医保号</a>
							<input  id='Heal' class="ui-alert border0" placeholder="" style="width:210px; float: right;"/>
						</li>
						<li class="mui-table-view-cell">
							<a style="float: left; font-size: 14px; width: 90px; line-height: 26px;">身份证号</a>
							<input  id='card' class="ui-alert border0" placeholder="" style="width:210px; float: right;"/>
						</li>
						<li class="mui-table-view-cell">
							<a style="float: left; font-size: 14px; width: 90px; line-height: 26px;">姓名</a>
							<input  id='name-1' class="ui-alert border0" placeholder="" style="width:210px; float: right;"/>
						</li>
						<li class="mui-table-view-cell">
							<a style="float: left; font-size: 14px; width: 90px; line-height: 26px;">性别</a>
							<input  id='sex-1' class="ui-alert border0" placeholder="" style="width:210px; float: right;"/>
						</li>
						<li class="mui-table-view-cell">
							<a style="float: left; font-size: 14px; width: 90px; line-height: 26px;">年龄</a>
							<input  id='age-1' class="ui-alert border0" placeholder="" style="width:210px; float: right;"/>
						</li>
						<li class="mui-table-view-cell">
							<a style="float: left; font-size: 14px; width: 90px; line-height: 26px;">电话</a>
							<input  id='tel' class="ui-alert border0" placeholder="" style="width:210px; float: right;"/>
						</li>
						<li class="mui-table-view-cell">
							<a style="float: left; font-size: 14px; width: 90px; line-height: 26px;">家庭关系</a>
							<input  id='fam' class="ui-alert border0" placeholder="" style="width:210px; float: right;"/>
						</li>
						<li class="mui-table-view-cell">
							<a style="float: left; font-size: 14px; width: 90px; line-height: 26px;">家庭住址</a>
							<input  id='ad-1' class="ui-alert border0" placeholder="" style="width:210px; float: right;"/>
						</li>
						<!-- <li class="mui-table-view-cell">
							<a style="float: left; font-size: 14px; width: 90px; line-height: 26px;">建档单位</a>
							<input  id='createu' class="ui-alert border0" placeholder="" style="width:210px; float: right;"/>
						</li> -->
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">建档日期</div>
								<input  id='created' class="ui-alert border0" placeholder="" style="width:210px; float: right;"/>
							</a>
						</li>
						</div>
						<!-- <li class="mui-table-view-cell">
							<a style="float: left; font-size: 14px; width: 90px; line-height: 26px;">创建账号</a>
							<input  id='createa' class="ui-alert border0" placeholder="" style="width:210px; float: right;"/>
						</li> -->
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">状态</div>
								<input id='enableFlag' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<div id="enableFlag_op" style="display: none; margin: 0; padding: 0;">
							<li class="mui-table-view-cell">
								<a data-options='{"type":"date"}' class="btn mui-navigate-right">
									<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">死亡时间</div>
									<input id='death_time' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
								</a>
							</li>
							<li class="mui-table-view-cell">
								<a data-options='{"type":"date"}' class="btn mui-navigate-right">
									<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">死亡原因</div>
									<input id='death_name' class="ui-alert"  placeholder="请选择" style="width:70%;"/>
								</a>
							</li>
							<li class="mui-table-view-cell">
								<input id='death_note' class="ui-alert bottom_soild"  placeholder="备注" style="width:100%; float:right; margin-right:15px;"/>
							</li>
						</div>
						<!-- <ul class="mui-table-view"> 
							<li class="mui-table-view-cell mui-collapse">
								<a class="mui-navigate-right" href="#">修改个人信息1</a>
								<div class="mui-collapse-content">
									<p>面板1子内容</p>
								</div>
							</li>
						</ul> -->
					</div>
				</div>
			</ul>
			<div style="margin: 0; padding: 0;" id="information">
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">建档人</div>
								<input  id='result0' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">责任医生</div>
								<input  id='result1' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">纸档建档日期</div>
								<input  id='result2' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a>
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">纸档建档位置</div>
								<input id="Paper" class="ui-alert"  placeholder="请填写" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a>
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">本人电话</div>
								<input  id='selftel' class="ui-alert"  placeholder="请填写" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a>
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">工作单位</div>
								<input  id='workUnit' class="ui-alert"  placeholder="请填写" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a>
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">联系人姓名</div>
								<input  id='contactname' class="ui-alert"  placeholder="请填写" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a>
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">联系人电话</div>
								<input  id='contacttel' class="ui-alert"  placeholder="请填写" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">常住类型</div>
								<input  id='result3' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">民族</div>
								<input  id='result4' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">血型</div>
								<input  id='result5' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">RH</div>
								<input  id='result6' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">文化程度</div>
								<input  id='result7' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">职业</div>
								<input  id='result8' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">婚姻状况</div>
								<input  id='result9' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
					</div>
				</div>
			</ul>
			<div style="clear:both; font-size: 16px; line-height:25px; margin-left:15px; margin-top: 5px;">医疗费用支付方式</div>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<ul class="mui-ul-check" id="ularry">
							<li value="418">城镇职工基本医疗保险</li>
							<li value="419">城镇居民基本医疗保险</li>
							<li value="420">新型农村合作医疗</li>
							<li value="421">贫困救助</li>
							<li value="422">商业医疗保险</li>
							<li value="423">全公费</li>
							<li value="424">全自费</li>
							<li value="425" id="other425">其他</li>
						</ul>
					</li>
					<li class="mui-table-view-cell" style="display: none;" id="other425_op">
						<input id='other425_text' class="ui-alert bottom_soild"  placeholder="请输入其它付费方式" style="width:100%; float:right; margin-right:15px;"/>
					</li>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<div style="float: left; font-size:16px;">药物过敏史</div>
							<div class="mui-switch" id="mySwitch3">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" style="display: none;" id="tigshow_3">
							<ul class="mui-ul-check" id="ularry1">
								<li value="39">青霉素</li>
								<li value="40">磺胺</li>
								<li value="41">链霉素</li>
								<li value="482" id="other482">其他过敏</li>
							</ul>
							<li class="mui-table-view-cell" style="display: none;" id="other482_op">
								<input id='other482_text' class="ui-alert bottom_soild"  placeholder="请输入其他过敏" style="width:100%; float:right; margin-right:15px;"/>
							</li>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size:16px;">暴露史</div>
							<div class="mui-switch" id="mySwitch4">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" style="display: none;" id="tigshow_4">
							<ul class="mui-ul-check" id="ularry2">
								<li value="442">化学</li>
								<li value="443">毒物</li>
								<li value="444">射线</li>
							</ul>
						</li>
					</div>
				</div>
			</ul>
			<div style="clear:both; font-size: 16px; line-height:25px; margin-left:15px; margin-top: 5px;">既往史</div>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<div style="float: left; font-size:16px;">疾病</div>
							<div class="mui-switch" id="mySwitch5">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" style="display: none;" id="tigshow_5">
							<ul class="mui-ul-check_1" id="ularry1_1">
							<div style="float: left; width: 100%; margin: 5px 0;" class="mui-table-view-cell">	
								<li value="43">高血压</li>
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="float: right; display: none; font-size: 14px; width: 90px; line-height: 26px;">
									<input  id='result10' class="ui-alert"  placeholder="请选择" style="width:100%;"/>
								</a>
							</div>
							<div style="float: left; width: 100%; margin: 5px 0;" class="mui-table-view-cell">	
								<li value="44">糖尿病</li>
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="float: right; display: none; font-size: 14px; width: 90px; line-height: 26px;">
									<input  id='result11' class="ui-alert"  placeholder="请选择" style="width:100%;"/>
								</a>
							</div>
							<div style="float: left; width: 100%; margin: 5px 0;" class="mui-table-view-cell">	
								<li value="45">冠心病</li>
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="float: right; display: none; font-size: 14px; width: 90px; line-height: 26px;">
									<input  id='result12' class="ui-alert"  placeholder="请选择" style="width:100%;"/>
								</a>
							</div>
							<div style="float: left; width: 100%; margin: 5px 0;" class="mui-table-view-cell">	
								<li value="46">慢性阻塞性肺疾病</li>
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="float: right; display: none; font-size: 14px; width: 90px; line-height: 26px;">
									<input  id='result13' class="ui-alert"  placeholder="请选择" style="width:100%;"/>
								</a>
							</div>
							<div style="float: left; width: 100%; margin: 5px 0;" class="mui-table-view-cell">	
								<li value="47">恶性肿瘤</li>
								<input id='tumor' class="ui-alert"  placeholder="恶性肿瘤名称" style="float: left; display: none; font-size: 14px; width:110px; line-height: 26px; border-bottom: 1px solid #D1D1D1; padding: 0; margin: 0 5px; text-align: center;">
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="float: right; display: none; font-size: 14px; width: 90px; line-height: 26px;">
									<input  id='result14' class="ui-alert"  placeholder="请选择" style="width:100%;"/>
								</a>
							</div>
							<div style="float: left; width: 100%; margin: 5px 0;" class="mui-table-view-cell">	
								<li value="48">脑卒中</li>
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="float: right; display: none; font-size: 14px; width: 90px; line-height: 26px;">
									<input  id='result15' class="ui-alert"  placeholder="请选择" style="width:100%;"/>
								</a>
							</div>
							<div style="float: left; width: 100%; margin: 5px 0;" class="mui-table-view-cell">	
								<li value="49">严重精神障碍</li>
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="float: right; display: none; font-size: 14px; width: 90px; line-height: 26px;">
									<input  id='result16' class="ui-alert"  placeholder="请选择" style="width:100%;"/>
								</a>
							</div>
							<div style="float: left; width: 100%; margin: 5px 0;" class="mui-table-view-cell">	
								<li value="50">肺结核</li>
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="float: right; display: none; font-size: 14px; width: 90px; line-height: 26px;">
									<input  id='result17' class="ui-alert"  placeholder="请选择" style="width:100%;"/>
								</a>
							</div>
							<div style="float: left; width: 100%; margin: 5px 0;" class="mui-table-view-cell">	
								<li value="51">肝炎</li>
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="float: right; display: none; font-size: 14px; width: 90px; line-height: 26px;">
									<input  id='result18' class="ui-alert"  placeholder="请选择" style="width:100%;"/>
								</a>
							</div>
							<div style="float: left; width: 100%; margin: 5px 0;" class="mui-table-view-cell">	
								<li value="52">其他法定传染病</li>
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="float: right; display: none; font-size: 14px; width: 90px; line-height: 26px;">
									<input  id='result19' class="ui-alert"  placeholder="请选择" style="width:100%;"/>
								</a>
							</div>
							<div style="float: left; width: 100%; margin: 5px 0;" class="mui-table-view-cell">	
								<li value="445">职业病</li>
								<input id="occ" class="ui-alert"  placeholder="职业名称" style="float: left; display: none; text-align: center; font-size: 14px; width: 110px; line-height: 26px; border-bottom: 1px solid #D1D1D1; padding: 0; margin: 0 5px; text-align: center;">
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="float: right; display: none; font-size: 14px; width: 90px; line-height: 26px;">
									<input  id='result20' class="ui-alert"  placeholder="请选择" style="width:100%;"/>
								</a>
							</div>
							<div style="float: left; width: 100%; margin: 5px 0;" class="mui-table-view-cell">	
								<li value="482">其他病史</li>
								<input  id='medical_text' class="ui-alert"  placeholder="请填写" style="float: left; display: none; text-align: center; font-size: 14px; width:120px; line-height: 26px; border-bottom: 1px solid #D1D1D1; padding: 0; margin: 0 5px; text-align: center;">
							</div>
							</ul>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size:16px;">手术</div>
							<div class="mui-switch" id="mySwitch6">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" style="display: none; padding:0;" id="tigshow_6">
							<div style="margin: 0; float: left; width: 100%;" class="mui-table-view-cell">
								<div style="float: left; font-size: 14px; width: 50px; line-height: 26px;">名称1</div>
								<input id='surgery1' class="ui-alert"  placeholder="名称" style="float: left; text-align: center; font-size: 14px; width:160px; line-height: 26px; border-bottom: 1px solid #D1D1D1;">
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="width: 110px;">
									<input  id='result21' class="ui-alert"  placeholder="请选择" style="width:100%; padding-right: 0;"/>
								</a>
							</div>
							<div style="margin: 0; float: left; width: 100%;" class="mui-table-view-cell">
								<div style="float: left; font-size: 14px; width: 50px; line-height: 26px;">名称2</div>
								<input id='surgery2' class="ui-alert"  placeholder="名称" style="float: left; text-align: center; font-size: 14px; width:160px; line-height: 26px; border-bottom: 1px solid #D1D1D1;">
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="width: 110px;">
									<input  id='result22' class="ui-alert"  placeholder="请选择" style="width:100%; padding-right: 0;"/>
								</a>
							</div>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size:16px;">外伤</div>
							<div class="mui-switch" id="mySwitch7">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" style="display: none; padding:0;" id="tigshow_7">
							<div style="margin: 0; float: left; width: 100%;" class="mui-table-view-cell">
								<div style="float: left; font-size: 14px; width: 50px; line-height: 26px;">名称1</div>
								<input id='trauma1' class="ui-alert"  placeholder="名称" style="float: left; text-align: center; font-size: 14px; width:160px; line-height: 26px; border-bottom: 1px solid #D1D1D1;">
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="width: 110px;">
									<input  id='result23' class="ui-alert"  placeholder="请选择" style="width:100%; padding-right: 0;"/>
								</a>
							</div>
							<div style="margin: 0; float: left; width: 100%;" class="mui-table-view-cell">
								<div style="float: left; font-size: 14px; width: 50px; line-height: 26px;">名称2</div>
								<input id='trauma2' class="ui-alert"  placeholder="名称" style="float: left; text-align: center; font-size: 14px; width:160px; line-height: 26px; border-bottom: 1px solid #D1D1D1;">
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="width: 110px;">
									<input  id='result24' class="ui-alert"  placeholder="请选择" style="width:100%; padding-right: 0;"/>
								</a>
							</div>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size:16px;">输血</div>
							<div class="mui-switch" id="mySwitch8">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" style="display: none; padding:0;" id="tigshow_8">
							<div style="margin: 0; float: left; width: 100%;" class="mui-table-view-cell">
								<div style="float: left; font-size: 14px; width: 50px; line-height: 26px;">原因1</div>
								<input id='transfusion1' class="ui-alert"  placeholder="原因" style="float: left; text-align: center; font-size: 14px; width:160px; line-height: 26px; border-bottom: 1px solid #D1D1D1;">
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="width: 110px;">
									<input  id='result25' class="ui-alert"  placeholder="请选择" style="width:100%; padding-right: 0;"/>
								</a>
							</div>
							<div style="margin: 0; float: left; width: 100%;" class="mui-table-view-cell">
								<div style="float: left; font-size: 14px; width: 50px; line-height: 26px;">原因2</div>
								<input id='transfusion2' class="ui-alert"  placeholder="原因" style="float: left; text-align: center; font-size: 14px; width:160px; line-height: 26px; border-bottom: 1px solid #D1D1D1;">
								<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="width: 110px;">
									<input  id='result26' class="ui-alert"  placeholder="请选择" style="width:100%; padding-right: 0;"/>
								</a>
							</div>
						</li>
					</div>
				</div>
			</ul>
			<div style="clear:both; font-size: 16px; line-height:25px; margin-left:15px; margin-top: 5px;">家族史</div>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<div style="float: left; font-size:16px;">父亲</div>
							<div class="mui-switch" id="mySwitch9">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" style="display: none;" id="tigshow_9">
							<ul class="mui-ul-check" id="ularry3">
								<li value="43">高血压</li>
								<li value="44">糖尿病</li>
								<li value="45">冠心病</li>
								<li value="46">慢性阻塞性肺疾病</li>
								<li value="47">恶性肿瘤</li>
								<li value="48">脑卒中</li>
								<li value="49">严重精神障碍</li>
								<li value="50">结核病</li>
								<li value="51">肺炎</li>
								<li value="54">先天畸形</li>
								<li value="53" id="other3">其他</li>
							</ul>
							<li class="mui-table-view-cell" style="display: none;" id="other3_op">
								<input id='other3_text' class="ui-alert bottom_soild"  placeholder="请输入其他" style="width:100%; float:right; margin-right:15px;"/>
							</li>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size:16px;">母亲</div>
							<div class="mui-switch" id="mySwitch10">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" style="display: none;" id="tigshow_10">
							<ul class="mui-ul-check" id="ularry4">
								<li value="43">高血压</li>
								<li value="44">糖尿病</li>
								<li value="45">冠心病</li>
								<li value="46">慢性阻塞性肺疾病</li>
								<li value="47">恶性肿瘤</li>
								<li value="48">脑卒中</li>
								<li value="49">严重精神障碍</li>
								<li value="50">结核病</li>
								<li value="51">肺炎</li>
								<li value="54">先天畸形</li>
								<li value="53" id="other4">其他</li>
							</ul>
							<li class="mui-table-view-cell" style="display: none;" id="other4_op">
								<input id='other4_text' class="ui-alert bottom_soild"  placeholder="请输入其他" style="width:100%; float:right; margin-right:15px;"/>
							</li>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size:16px;">兄弟姐妹</div>
							<div class="mui-switch" id="mySwitch11">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" style="display: none;" id="tigshow_11">
							<ul class="mui-ul-check" id="ularry5">
								<li value="43">高血压</li>
								<li value="44">糖尿病</li>
								<li value="45">冠心病</li>
								<li value="46">慢性阻塞性肺疾病</li>
								<li value="47">恶性肿瘤</li>
								<li value="48">脑卒中</li>
								<li value="49">严重精神障碍</li>
								<li value="50">结核病</li>
								<li value="51">肺炎</li>
								<li value="54">先天畸形</li>
								<li value="53" id="other5">其他</li>
							</ul>
							<li class="mui-table-view-cell" style="display: none;" id="other5_op">
								<input id='other5_text' class="ui-alert bottom_soild"  placeholder="请输入其他" style="width:100%; float:right; margin-right:15px;"/>
							</li>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size:16px;">子女</div>
							<div class="mui-switch" id="mySwitch12">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" style="display: none;" id="tigshow_12">
							<ul class="mui-ul-check" id="ularry6">
								<li value="43">高血压</li>
								<li value="44">糖尿病</li>
								<li value="45">冠心病</li>
								<li value="46">慢性阻塞性肺疾病</li>
								<li value="47">恶性肿瘤</li>
								<li value="48">脑卒中</li>
								<li value="49">严重精神障碍</li>
								<li value="50">结核病</li>
								<li value="51">肺炎</li>
								<li value="54">先天畸形</li>
								<li value="53" id="other6">其他</li>
							</ul>
							<li class="mui-table-view-cell" style="display: none;" id="other6_op">
								<input id='other6_text' class="ui-alert bottom_soild"  placeholder="请输入其他" style="width:100%; float:right; margin-right:15px;"/>
							</li>
						</li>
					</div>
				</div>
			</ul>
			<div style="margin-left:0.9rem; height:5px; line-height:35px;"></div>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<div style="float: left; font-size:16px;">遗传病史</div>
							<div class="mui-switch" id="mySwitch13">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" style="display: none;" id="tigshow_13">
							<a>
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">疾病名称</div>
								<input  id='other6-1_text' class="ui-alert"  placeholder="请输入疾病名称" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size:16px;">残疾情况</div>
							<div class="mui-switch" id="mySwitch14">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" style="display: none;" id="tigshow_14">
							<ul class="mui-ul-check" id="ularry7">
								<li value="57">视力残疾</li>
								<li value="58">听力残疾</li>
								<li value="59">语言残疾</li>
								<li value="60">肢体残疾</li>
								<li value="61">智力残疾</li>
								<li value="62">精神残疾</li>
								<li value="482" id="other7">其他残疾</li>
							</ul>
							<li class="mui-table-view-cell" style="display: none;" id="other7_op">
								<input id='other7_text' class="ui-alert bottom_soild"  placeholder="请输入其他残疾" style="width:100%; float:right; margin-right:15px;"/>
							</li>
						</li>
					</div>
				</div>
			</ul>
			<div style="clear:both; font-size: 16px; line-height:25px; margin-left:15px; margin-top: 5px;">生活环境</div>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">厨房抽风设施</div>
								<input  id='result27' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">燃料类型</div>
								<input  id='result28' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">饮水</div>
								<input  id='result29' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">厕所</div>
								<input  id='result30' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">禽畜栏</div>
								<input  id='result31' class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
					</div>
				</div>	
			</ul>
			</div>
			<div onclick="submit()" class="submit" >提交</div>
		</div>
		<script src="../../js/mui.js"></script>
		<script src="../../js/mui.picker.min.js"></script>
		<script src="../../js/jquery.min-1.11.1.js"></script>
		<script src="../../js/request.js"></script>
		<script type="text/javascript">
			var resultall = {"r1":[{value:'0',text:' '},{value:'1',text:'户籍'},{value:'2',text:'非户籍'}],
							"r2":[{value:'0',text:' '},{value:'01',text:'汉族'},{value:'02',text:'蒙古族'},{value:'03',text:'回族'},
								{value:'04',text:'藏族'},{value:'05',text:'维吾尔族'},{value:'06',text:'苗族'},
								{value:'07',text:'彝族'},{value:'08',text:'壮族'},{value:'09',text:'布依族'},
								{value:'10',text:'朝鲜族'},{value:'11',text:'满族'},{value:'12',text:'侗族'},
								{value:'13',text:'瑶族'},{value:'14',text:'白族'},{value:'15',text:'土家族'},
								{value:'16',text:'哈尼族'},{value:'17',text:'哈萨克族'},{value:'18',text:'傣族'},
								{value:'19',text:'黎族'},{value:'20',text:'僳僳族'},{value:'21',text:'佤族'},
								{value:'22',text:'畲族'},{value:'23',text:'高山族'},{value:'24',text:'拉祜族'},
								{value:'25',text:'水族'},{value:'26',text:'东乡族'},{value:'27',text:'纳西族'},
								{value:'28',text:'景颇族'},{value:'29',text:'柯尔克孜族'},{value:'30',text:'土族'},
								{value:'31',text:'达斡尔族'},{value:'32',text:'仫佬族'},{value:'33',text:'羌族'},
								{value:'34',text:'布朗族'},{value:'35',text:'撒拉族'},{value:'36',text:'毛难族'},
								{value:'37',text:'仡佬族'},{value:'38',text:'锡伯族'},{value:'39',text:'阿昌族'},
								{value:'40',text:'普米族'},{value:'41',text:'塔吉克族'},{value:'42',text:'怒族'},
								{value:'43',text:'乌孜别克族'},{value:'44',text:'俄罗斯族'},{value:'45',text:'鄂温克族'},
								{value:'46',text:'德昂族'},{value:'47',text:'保安族'},{value:'48',text:'裕固族'},
								{value:'49',text:'京族'},{value:'50',text:'塔尔族'},{value:'51',text:'独龙族'},
								{value:'52',text:'鄂伦春族'},{value:'53',text:'赫哲族'},{value:'54',text:'门巴族'},
								{value:'55',text:'珞巴族'},{value:'56',text:'基诺族'},{value:'57',text:'外国血统'},
								{value:'58',text:'其它'}],
							"r3":[{value:'0',text:' '},{value:'3',text:'A型'},{value:'4',text:'B型'},{value:'5',text:'O型'},{value:'6',text:'AB型'},{value:'16',text:'不详'}],
							"r4":[{value:'0',text:' '},{value:'9',text:'阴性'},{value:'8',text:'阳性'},{value:'16',text:'不详'}],
							"r5":[{value:'0',text:' '},{value:'11',text:'文盲及半文盲'},{value:'12',text:'小学'},{value:'13',text:'初中'},
								{value:'581',text:'高中'},{value:'582',text:'技工学校'},{value:'583',text:'中等专业学校'},
								{value:'584',text:'大学专科和专业学校'},{value:'585',text:'大学本科'},{value:'586',text:'研究生'},
								{value:'16',text:'不详'}],
							"r6":[{value:'0',text:' '},{value:'426',text:'国家机关、党群组织、企业、事业单位负责人'},{value:'427',text:'专业技术人员'},{value:'428',text:'办事人员和有关人员'},
								{value:'429',text:'商业、服务业人员'},{value:'430',text:'农、林、牧、渔、水利业生产人员'},{value:'431',text:'生产、运输设备操作人员及有关人员'},
								{value:'432',text:'军人'},{value:'433',text:'不便分类的其它从业人员'},{value:'587',text:'无业人员'}],
							"r7":[{value:'0',text:' '},{value:'25',text:'未婚'},{value:'26',text:'已婚'},{value:'27',text:'丧偶'},{value:'28',text:'离婚'},{value:'29',text:'未说明的婚姻状况'}],
							"r8":[{value:'0',text:' '},{value:'56',text:'无'},{value:'446',text:'油烟机'},{value:'447',text:'换气扇'},{value:'448',text:'烟囱'}],
							"r9":[{value:'0',text:' '},{value:'449',text:'液化气'},{value:'450',text:'煤'},{value:'451',text:'天然气'},{value:'452',text:'沼气'},{value:'453',text:'柴火'},{value:'454',text:'其他'}],
							"r10":[{value:'0',text:' '},{value:'455',text:'自来水'},{value:'456',text:'经净化过的水'},{value:'457',text:'井水'},{value:'458',text:'河湖水'},{value:'459',text:'塘水'},{value:'460',text:'其他'}],
							"r11":[{value:'0',text:' '},{value:'461',text:'卫生厕所'},{value:'462',text:'一格或二格粪池式'},{value:'463',text:'马桶'},{value:'464',text:'露天粪坑'},{value:'465',text:'简易棚厕'}],
							"r12":[{value:'0',text:' '},{value:'56',text:'无'},{value:'466',text:'单设'},{value:'467',text:'室内'},{value:'468',text:'室外'}],
							"r13":[{value:'1',text:'正常'},{value:'3',text:'死亡'}],
							"r14":[{value:'0',text:' '},{value:'1',text:'不详'},{value:'2',text:'伤寒和副伤寒'},{value:'3',text:'痢疾'},
								{value:'4',text:'肠道其他细菌性传染病'},{value:'5',text:'呼吸道结核'},{value:'6',text:'其他结核'},
								{value:'7',text:'钩端螺旋体病'},{value:'8',text:'破伤风'},{value:'9',text:'百日咳'},
								{value:'10',text:'脑膜炎球菌感染'},{value:'11',text:'败血症'},{value:'12',text:'流行性乙型脑炎'},
								{value:'13',text:'流行性出血热'},{value:'14',text:'麻疹'},{value:'15',text:'病毒性肝炎'},
								{value:'16',text:'艾滋病'},{value:'17',text:'疟疾'},{value:'18',text:'血吸虫病'},
								{value:'19',text:'其他传染病和寄生虫病'},{value:'20',text:'鼻咽癌'},{value:'21',text:'食道癌'},
								{value:'22',text:'胃癌'},{value:'23',text:'结肠、直肠和肛门癌'},{value:'24',text:'肝癌'},
								{value:'25',text:'肺癌'},{value:'26',text:'乳腺癌'},{value:'27',text:'宫颈癌'},
								{value:'28',text:'膀胱癌'},{value:'29',text:'白血病'},{value:'30',text:'良性肿瘤'},
								{value:'31',text:'其他肿瘤'},{value:'32',text:'贫血'},{value:'33',text:'血液、造血器官及免疫的其他疾病'},
								{value:'34',text:'糖尿病'},{value:'35',text:'内分泌、营养和代谢的其他疾病'},{value:'36',text:'精神障碍'},
								{value:'37',text:'脑膜炎'},{value:'38',text:'神经系统的其他疾病'},{value:'39',text:'急性风湿热'},
								{value:'40',text:'慢性风湿性心脏病'},{value:'41',text:'高血压性心脏病'},{value:'42',text:'急性心肌梗死'},
								{value:'43',text:'其他冠心病'},{value:'44',text:'肺源性心脏病'},{value:'45',text:'其他心脏病'},
								{value:'46',text:'其他高血压病'},{value:'47',text:'脑血管病'},{value:'48',text:'循环系统的其他疾病'},
								{value:'49',text:'肺炎'},{value:'50',text:'慢性下呼吸道疾病'},{value:'51',text:'尘肺'},
								{value:'52',text:'呼吸系统的其他疾病'},{value:'53',text:'胃和十二指肠溃疡'},{value:'54',text:'阑尾炎'},
								{value:'55',text:'肠梗阻'},{value:'56',text:'肝疾病'},{value:'57',text:'消化系统的其他疾病'},
								{value:'58',text:'肌肉骨骼和结缔组织疾病'},{value:'59',text:'肾小球和肾小管间质疾病'},{value:'60',text:'前列腺增生'},
								{value:'61',text:'泌尿生殖系统的其他疾病'},{value:'62',text:'流产'},{value:'63',text:'妊娠高血压综合征'},
								{value:'64',text:'梗阻性分娩'},{value:'65',text:'产后出血'},{value:'66',text:'孕妇内科合并症'},
								{value:'67',text:'羊水栓塞'},{value:'68',text:'母体产伤'},{value:'69',text:'产褥期感染'},
								{value:'70',text:'间接产科原因计'},{value:'71',text:'妊娠、分娩和产褥期的其他情况'},{value:'72',text:'早产儿和未成熟儿'},
								{value:'73',text:'新生儿产伤和窒息'},{value:'74',text:'新生儿溶血性疾病'},{value:'75',text:'新生儿硬化病'},
								{value:'76',text:'起源于围生期的其他情况'},{value:'77',text:'先天性心脏病'},{value:'78',text:'其他先天畸形、变形和染色体异常'},
								{value:'79',text:'诊断不明'},{value:'80',text:'其他疾病'},{value:'81',text:'机动车辆交通事故'},
								{value:'82',text:'机动车以外的运输事故'},{value:'83',text:'意外中毒'},{value:'84',text:'意外跌落'},
								{value:'85',text:'火灾'},{value:'86',text:'由自然环境因素所致的意外事故'},{value:'87',text:'淹死'},
								{value:'88',text:'意外的机械性窒息'},{value:'89',text:'砸死'},{value:'90',text:'由机器切割和穿刺工具所致的意外事故'},
								{value:'91',text:'触电'},{value:'92',text:'其他意外事故和有效伤害'},{value:'93',text:'自杀'},{value:'94',text:'被杀'}]};
			var id = 0;
			var ehrId = "";//编号
			var nhCode = "";//农合号
			var ehrCode = "";//健康档案号
			var personId = "";//农合成员ID
			var regionId = "";//地区ID
			var townId = "";//乡镇ID
			var createDate = "";//人口数据创建时间
			var hospId = "";//作废 老健康档案医院ID
			var name = "";//居民姓名
			var idCard = "";//身份证
			var familyRelation = "";//家庭关系
			var sex = "";//性别
			var birthday = "";//出生年月
			var nativePlace = "";//籍贯
			var nation = "0";//民族
			var education = "0";//教育程度
			var maritalStatus = "0";//婚姻状态
			var profession = "0";//职业
			var workUnit = "";//工作地
			var email = "";//邮箱
			var mobile = "";//手机
			var telephone = "";//电话
			var homeAddress = "";//现具体住址
			var createUser = "";//人口创建人ID（档案录入人ID）
			var modifyDate = "";//人口数据修改时间
			var modifyUser = "";//人口数据修改人ID
			var ehrDesc = "";//说明
			var questionCustId = "";//问卷
			var questionCreateDate = "";//问卷创建时间
			var questionModifyDate = "";//问卷修改时间
			var ehrCreateUser = "";//建档人姓名
			var masterDoctor = "";//责任医生姓名
			var ehrCreateDate = "";//健康档案创建时间
			var qualityScores = "";//质量得分
			var evaluationFlag = "";//健康评估结果
			var evaluationId = "";//健康评估
			var villageId = "";//村委会/居委会ID
			var enableFlag = "";//状态
			var chFlag = "";//参合标识
			var dataCheckDate = "";//数据审核时间
			var natureId = "";//自然村ID
			var natureName = "";//自然村
			var vcFlag = "";//人口类型
			var familyId = "";//农合家庭ID
			var clinicId = "";//卫生室
			var ehrModifyDate = "";//健康档案修改日期
			var ehrModifyUser = "";//健康档案修改人ID
			var ehrHospId = "";//人口数据来源或建档单位
			var migrateFlag = "";//迁移标志
			var ehrCreateUserId = "";//建档人ID
			var masterDoctorId = "";//责任医生ID
			var xkSign = "";//档案来源标识
			var parentIdCard = "";//母亲身份证号
			var deathDate = "";//死亡日期
			var deathreasonId = "";//死亡原因ID
			var remark = "";//备注
			var registerAddress = "";//户籍地址
			var paperposition = "";//纸质存放位置
			var paperdate = "";//纸质建档日期
			var result = "";
			var result0,result1,
				result3 = "0",
				result5 = "0",
				result6 = "0",
				doctorId = "",
				doctorName = "";
			//获取变量
			var date1 = new Date();
			var year1=date1.getFullYear(); 
			var month1=date1.getMonth()+1;
			var day1=date1.getDate();
			var h1=date1.getHours();
			var m1=date1.getMinutes();
			var s1=date1.getSeconds();
				month1 =(month1<10 ? "0"+month1:month1); 
				day1 =(day1<10 ? "0"+day1:day1); 
				h1 =(h1<10 ? "0"+h1:h1); 
				m1 =(m1<10 ? "0"+m1:m1); 
				s1 =(s1<10 ? "0"+s1:s1);
				modifyDate = (year1.toString()+'-'+month1.toString()+'-'+day1.toString()+' '+h1.toString()+':'+m1.toString()+':'+s1.toString());
				ehrModifyDate = (year1.toString()+'-'+month1.toString()+'-'+day1.toString()+' '+h1.toString()+':'+m1.toString()+':'+s1.toString());
			var self1 = localStorage.getItem("name")
			var data = JSON.parse(self1)
			console.log(self1)
			doctorName = data.obj.userName;//责任(评估)医生名字
			doctorId = data.obj.id;//责任(评估)医生id
			doctorHospId = data.obj.hospId;//责任(评估)医生医院id
			createHospId = data.obj.hospId;//创建医院id
			doctorHospName = data.obj.hospName;//责任(评估)医生医院名称
			modifyUser = data.obj.id;//修改人id
			ehrModifyUser = data.obj.id;//人口表修改人id
			var listdata = "";
			var selfdata = "";
			var newdate = new Date();
			mui.plusReady(function(){
				var self = plus.webview.currentWebview()
					listdata = self.data;
					selfdata = JSON.parse(listdata);
					console.log(listdata)
					if (selfdata.createDate == "") {
						createDate = new Date();
					} else{
						createDate = selfdata.createDate;
					}
					if (selfdata.createUser == "") {
						createUser = data.obj.id;
					} else{
						createUser = selfdata.createUser;
					}
					if (selfdata.ehrCreateUser == "") {
						ehrCreateUser = data.obj.userName;
						ehrCreateUserId = data.obj.id;
					} else{
						ehrCreateUser = selfdata.ehrCreateUser;
						ehrCreateUserId = selfdata.ehrCreateUserId
					}
					if (selfdata.masterDoctor == "") {
						masterDoctor = data.obj.userName;
					} else{
						masterDoctor = selfdata.masterDoctor;
					}
					if (selfdata.masterDoctorId == "" || selfdata.masterDoctorId == null) {
						masterDoctorId = data.obj.id;
					} else{
						masterDoctorId = selfdata.masterDoctorId;
					}
					if (selfdata.regionId == "") {
						regionId = data.obj.regionId;
					} else{
						regionId = selfdata.regionId;
					}
					if (selfdata.personId == "") {
						personId = "";
					} else{
						personId = selfdata.personId;
					}
					if (selfdata.townId == "") {
						townId = "";
					} else{
						townId = selfdata.townId;
					}
					if (selfdata.hospId == "") {
						hospId = data.obj.hospId;;
					} else{
						hospId = selfdata.hospId;
					}
					if (selfdata.ehrHospId == "") {
						ehrHospId = data.obj.hospId;;
					} else{
						ehrHospId = selfdata.ehrHospId;
					}
					ehrId = selfdata.ehrId;
					var date0 = new Date(selfdata.birthday);
					var date1 = new Date();
					var year0=date0.getFullYear(); 
					var year1=date1.getFullYear(); 
					var patage = year1-year0;
				document.getElementById("archives").value = selfdata.ehrCode;
				document.getElementById("Heal").value = selfdata.nhCode;
				document.getElementById("card").value = selfdata.idCard;
				document.getElementById("name-1").value = selfdata.name;
				document.getElementById("sex-1").value = selfdata.sex;
				document.getElementById("age-1").value = patage;
				document.getElementById("tel").value = selfdata.telephone;
				document.getElementById("fam").value = selfdata.familyRelation;
				document.getElementById("ad-1").value = selfdata.homeAddress;
				//document.getElementById("createu").value = selfdata.ehrHospId;
				document.getElementById("created").value = selfdata.ehrCreateDate;
				document.getElementById("result0").value = selfdata.ehrCreateUser;
				document.getElementById("result1").value = selfdata.masterDoctor;
				//document.getElementById("createa").value = selfdata.create_user_code;
				document.getElementById("created").value = createDate;
				var rowsenableFlag=resultall.r13
				for(var j=0; j<rowsenableFlag.length; j++){
					if(selfdata.enableFlag == rowsenableFlag[j].value){
						document.getElementById("enableFlag").value = rowsenableFlag[j].text;
					}
				}
				if(selfdata.enableFlag == "3"){
					document.getElementById("information").style.display="none";
					document.getElementById("enableFlag_op").style.display="block";
					var rowsdeathreasonId=resultall.r14
					for(var j=0; j<rowsenableFlag.length; j++){
						if(selfdata.deathreasonId == rowsdeathreasonId[j].value){
							document.getElementById("death_name").value = rowsdeathreasonId[j].text;
						}
					}
					var dated = new Date(selfdata.deathDate);
					var yeard=dated.getFullYear(); 
					var monthd=dated.getMonth()+1;
					var dayd=dated.getDate();
						monthd =(monthd<10 ? "0"+monthd:monthd); 
						dayd =(dayd<10 ? "0"+dayd:dayd); 
					var deathd = (yeard.toString()+'-'+monthd.toString()+'-'+dayd.toString());
					document.getElementById("death_time").value = deathd;
					document.getElementById("death_note").value = selfdata.remark;
					$("input").attr("disabled","disabled");
					$(".mui-conten a").css("pointer-events","none");
				}else{
					document.getElementById("information").style.display="block";
					document.getElementById("enableFlag_op").style.display="none";
				}
				document.getElementById("Paper").value = selfdata.paperposition;//纸质存放位置
				document.getElementById("result2").value = selfdata.paperdate;//纸质建档日期
				$.ajax({
					type: 'post',
					url:getRequestUrl.url+"/mobile/ehr/EhrSPersonAnswer23/getVisitDetail",
					data:{
						ehr_id: ehrId
					},
					dataType:"json",
					success : function(data) {
						rows = data.rows;
						if(data.status==1){
							alert("获取成功");
							for(var i=0; i<rows.length; i++){
								if(rows[i].questionId == "25"){//本人电话
									document.getElementById("selftel").value = rows[i].answer;
								};
								if(rows[i].questionId == "314"){//工作单位
									document.getElementById("workUnit").value = rows[i].answer;
								};
								if(rows[i].questionId == "545"){//联系人姓名
									document.getElementById("contactname").value = rows[i].answer;
								};
								if(rows[i].questionId == "546"){//联系人电话
									document.getElementById("contacttel").value = rows[i].answer;
								};
								if(rows[i].questionId == "10"){//常住类型
									var rowsresult3=resultall.r1
									for (var j=0; j<rowsresult3.length; j++) {
										if(rows[i].answerId == rowsresult3[j].value){
											document.getElementById("result3").value = rowsresult3[j].text;
										}
									}
								}
								if(rows[i].questionId == "11"){//民族
									var rowsnation=resultall.r2
									for (var j=0; j<rowsnation.length; j++) {
										if(rows[i].answerId == rowsnation[j].value){
											document.getElementById("result4").value = rowsnation[j].text;
										}
									}
								}
								if(rows[i].questionId == "13"){//血型
									var rowsresult5=resultall.r3
									for (var j=0; j<rowsresult5.length; j++) {
										if(rows[i].answerId == rowsresult5[j].value){
											document.getElementById("result5").value = rowsresult5[j].text;
										}
									}
								}
								if(rows[i].questionId == "26"){//RH
									var rowsresult6=resultall.r4
									for (var j=0; j<rowsresult6.length; j++) {
										if(rows[i].answerId == rowsresult6[j].value){
											document.getElementById("result6").value = rowsresult6[j].text;
										}
									}
								}
								if(rows[i].questionId == "14"){//文化程度
									var rowseducation=resultall.r5
									for (var j=0; j<rowseducation.length; j++) {
										if(rows[i].answerId == rowseducation[j].value){
											document.getElementById("result7").value = rowseducation[j].text;
										}
									}
								}
								if(rows[i].questionId == "15"){//职业
									var rowsprofession=resultall.r6
									for (var j=0; j<rowsprofession.length; j++) {
										if(rows[i].answerId == rowsprofession[j].value){
											document.getElementById("result8").value = rowsprofession[j].text;
										}
									}
								}
								if(rows[i].questionId == "17"){//婚姻状况
									var rowsmaritalStatus=resultall.r7
									for (var j=0; j<rowsmaritalStatus.length; j++) {
										if(rows[i].answerId == rowsmaritalStatus[j].value){
											document.getElementById("result9").value = rowsmaritalStatus[j].text;
										}
									}
								}
								if(rows[i].questionId == "517"){//支付方式
									var medicineYn1arr = rows[i].answer;
									if(medicineYn1arr != null){
										var medicineYn1arr_n = medicineYn1arr.split(",");
										if(medicineYn1arr_n.length != 0){
											$ ("#ularry").each (function (){
												$ (this).find ('li').each (function (){
													var y = medicineYn1arr_n.length-1;
													for (var i=0; i<medicineYn1arr_n.length; i++) {
														if ($(this).val() == medicineYn1arr_n[i]) {
									                        $(this).addClass("on");
															if(medicineYn1arr_n[y] == "425"){
																document.getElementById("other425_op").style.display="block";
															}else{
																document.getElementById("other425_op").style.display="none";
															}
									                    }		
													}
												})
											})	
										}
									}
									//支付方式多选赋值结束
								};
								if(rows[i].questionId == "518"){
									document.getElementById("other425_text").value = rows[i].answer;
								}
								if(rows[i].questionId == "18"){//药物过敏史
									if(rows[i].answer != "56"){
										document.getElementById("tigshow_3").style.display = "block";
										document.getElementById("mySwitch3").classList.add('mui-active');
										var medicineYn2arr = rows[i].answer;
										if(medicineYn2arr != null){
											var medicineYn2arr_n = medicineYn2arr.split(",");
											if(medicineYn2arr_n.length != 0){
												$ ("#ularry1").each (function (){
													$ (this).find ('li').each (function (){
														var y = medicineYn2arr_n.length-1;
														for (var i=0; i<medicineYn2arr_n.length; i++) {
															if ($(this).val() == medicineYn2arr_n[i]) {
										                        $(this).addClass("on");
																if(medicineYn2arr_n[y] == "482"){
																	document.getElementById("other482_op").style.display="block";
																}else{
																	document.getElementById("other482_op").style.display="none";
																}
										                    }		
														}
													})
												})	
											}
										}
									}else{
										document.getElementById("tigshow_3").style.display = "none";
										document.getElementById("mySwitch3").classList.remove('mui-active');
									}
								}
								if(rows[i].questionId == "19"){
									document.getElementById("other482_text").value = rows[i].answer;
								}
								if(rows[i].questionId == "526"){//暴露史
									if(rows[i].answer != "56"){
										document.getElementById("tigshow_4").style.display = "block";
										document.getElementById("mySwitch4").classList.add('mui-active');
										var medicineYn3arr = rows[i].answer;
										if(medicineYn3arr != null){
											var medicineYn3arr_n = medicineYn3arr.split(",");
											if(medicineYn3arr_n.length != 0){
												$ ("#ularry2").each (function (){
													$ (this).find ('li').each (function (){
														for (var i=0; i<medicineYn3arr_n.length; i++) {
															if ($(this).val() == medicineYn3arr_n[i]) {
										                        $(this).addClass("on");
										                    }		
														}
													})
												})	
											}
										}
									}else{
										document.getElementById("tigshow_4").style.display = "none";
										document.getElementById("mySwitch4").classList.remove('mui-active');
									}
								}
								if(rows[i].questionId == "240"){//疾病
									if(rows[i].answer != "56"){
										document.getElementById("tigshow_5").style.display = "block";
										document.getElementById("mySwitch5").classList.add('mui-active');
										var medicineYn2_1arr = rows[i].answer;
										if(medicineYn2_1arr != null){
											var medicineYn2_1arr_n = medicineYn2_1arr.split(",");
											if(medicineYn2_1arr_n.length != 0){
												$ ("#ularry1_1").each (function (){
													$ (this).find ('li').each (function (){
														var y = medicineYn2_1arr_n.length-1;
														for (var i=0; i<medicineYn2_1arr_n.length; i++) {
															if ($(this).val() == medicineYn2_1arr_n[i]) {
										                        $(this).addClass("on");
																$(this).siblings().css({"display":"block"});
										                    }		
														}
													})
												})	
											}
										}
									}else{
										document.getElementById("tigshow_5").style.display = "none";
										document.getElementById("mySwitch5").classList.remove('mui-active');
									}
								}
								if(rows[i].questionId == "301"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result10").value = datab;
									}else{
										document.getElementById("result10").value = "";
									}
								}
								if(rows[i].questionId == "302"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result11").value = datab;
									}else{
										document.getElementById("result11").value = "";
									}
								}
								if(rows[i].questionId == "303"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result12").value = datab;
									}else{
										document.getElementById("result12").value = "";
									}
								}
								if(rows[i].questionId == "304"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result13").value = datab;
									}else{
										document.getElementById("result13").value = "";
									}
								}
								if(rows[i].questionId == "305"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result14").value = datab;
									}else{
										document.getElementById("result14").value = "";
									}
								}
								if(rows[i].questionId == "306"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result15").value = datab;
									}else{
										document.getElementById("result15").value = "";
									}
								}
								if(rows[i].questionId == "307"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result16").value = datab;
									}else{
										document.getElementById("result16").value = "";
									}
								}
								if(rows[i].questionId == "308"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result17").value = datab;
									}else{
										document.getElementById("result17").value = "";
									}
								}
								if(rows[i].questionId == "309"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result18").value = datab;
									}else{
										document.getElementById("result18").value = "";
									}
								}
								if(rows[i].questionId == "737"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result19").value = datab;
									}else{
										document.getElementById("result19").value = "";
									}
								}
								if(rows[i].questionId == "529"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result20").value = datab;
									}else{
										document.getElementById("result20").value = "";
									}
								}
								if(rows[i].questionId == "242"){
									document.getElementById("tumor").value = rows[i].answer;
								}
								if(rows[i].questionId == "528"){
									document.getElementById("occ").value = rows[i].answer;
								}
								if(rows[i].questionId == "241"){
									document.getElementById("medical_text").value = rows[i].answer;
								}
								if(rows[i].questionId == "250"){//手术
									if(rows[i].answerId != "56"){
										document.getElementById("tigshow_6").style.display = "block";
										document.getElementById("mySwitch6").classList.add('mui-active');
										
									}else{
										document.getElementById("tigshow_6").style.display = "none";
										document.getElementById("mySwitch6").classList.remove('mui-active');
									}
								}
								if(rows[i].questionId == "251"){
									document.getElementById("surgery1").value = rows[i].answer;
								}
								if(rows[i].questionId == "252"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result21").value = datab;
									}else{
										document.getElementById("result21").value = "";
									}
								}
								if(rows[i].questionId == "253"){
									document.getElementById("surgery2").value = rows[i].answer;
								}
								if(rows[i].questionId == "254"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result22").value = datab;
									}else{
										document.getElementById("result22").value = "";
									}
								}
								if(rows[i].questionId == "255"){//外伤
									if(rows[i].answerId != "56"){
										document.getElementById("tigshow_7").style.display = "block";
										document.getElementById("mySwitch7").classList.add('mui-active');
										
									}else{
										document.getElementById("tigshow_7").style.display = "none";
										document.getElementById("mySwitch7").classList.remove('mui-active');
									}
								}
								if(rows[i].questionId == "256"){
									document.getElementById("trauma1").value = rows[i].answer;
								}
								if(rows[i].questionId == "257"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result23").value = datab;
									}else{
										document.getElementById("result23").value = "";
									}
								}
								if(rows[i].questionId == "258"){
									document.getElementById("trauma2").value = rows[i].answer;
								}
								if(rows[i].questionId == "259"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result24").value = datab;
									}else{
										document.getElementById("result24").value = "";
									}
								}
								if(rows[i].questionId == "260"){//输血
									if(rows[i].answerId != "56"){
										document.getElementById("tigshow_8").style.display = "block";
										document.getElementById("mySwitch8").classList.add('mui-active');
										
									}else{
										document.getElementById("tigshow_8").style.display = "none";
										document.getElementById("mySwitch8").classList.remove('mui-active');
									}
								}
								if(rows[i].questionId == "261"){
									document.getElementById("transfusion1").value = rows[i].answer;
								}
								if(rows[i].questionId == "262"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result25").value = datab;
									}else{
										document.getElementById("result25").value = "";
									}
								}
								if(rows[i].questionId == "263"){
									document.getElementById("transfusion2").value = rows[i].answer;
								}
								if(rows[i].questionId == "264"){
									if(rows[i].answer != ""){
										var datev = new Date(rows[i].answer);
										var yearv=datev.getFullYear(); 
										var monthv=datev.getMonth()+1;
										var dayv=datev.getDate();
											monthv =(monthv<10 ? "0"+monthv:monthv); 
											dayv =(dayv<10 ? "0"+dayv:dayv); 
										var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
										document.getElementById("result26").value = datab;
									}else{
										document.getElementById("result26").value = "";
									}
								}
								if(rows[i].questionId == "270"){//家族史父亲
									if(rows[i].answer != "56"){
										document.getElementById("tigshow_9").style.display = "block";
										document.getElementById("mySwitch9").classList.add('mui-active');
										var medicineYn4arr = rows[i].answer;
										if(medicineYn4arr != null){
											var medicineYn4arr_n = medicineYn4arr.split(",");
											if(medicineYn4arr_n.length != 0){
												$ ("#ularry3").each (function (){
													$ (this).find ('li').each (function (){
														var y = medicineYn4arr_n.length-1;
														for (var i=0; i<medicineYn4arr_n.length; i++) {
															if ($(this).val() == medicineYn4arr_n[i]) {
										                        $(this).addClass("on");
																if(medicineYn4arr_n[y] == "53"){
																	document.getElementById("other3_op").style.display="block";
																}else{
																	document.getElementById("other3_op").style.display="none";
																}
										                    }		
														}
													})
												})	
											}
										}
									}else{
										document.getElementById("tigshow_9").style.display = "none";
										document.getElementById("mySwitch9").classList.remove('mui-active');
									}
								}
								if(rows[i].questionId == "271"){
									document.getElementById("other3_text").value = rows[i].answer;
								}
								if(rows[i].questionId == "272"){//家族史母亲
									if(rows[i].answer != "56"){
										document.getElementById("tigshow_10").style.display = "block";
										document.getElementById("mySwitch10").classList.add('mui-active');
										var medicineYn5arr = rows[i].answer;
										if(medicineYn5arr != null){
											var medicineYn5arr_n = medicineYn5arr.split(",");
											if(medicineYn5arr_n.length != 0){
												$ ("#ularry4").each (function (){
													$ (this).find ('li').each (function (){
														var y = medicineYn5arr_n.length-1;
														for (var i=0; i<medicineYn5arr_n.length; i++) {
															if ($(this).val() == medicineYn5arr_n[i]) {
										                        $(this).addClass("on");
																if(medicineYn5arr_n[y] == "53"){
																	document.getElementById("other4_op").style.display="block";
																}else{
																	document.getElementById("other4_op").style.display="none";
																}
										                    }		
														}
													})
												})	
											}
										}
									}else{
										document.getElementById("tigshow_10").style.display = "none";
										document.getElementById("mySwitch10").classList.remove('mui-active');
									}
								}
								if(rows[i].questionId == "273"){
									document.getElementById("other4_text").value = rows[i].answer;
								}
								if(rows[i].questionId == "274"){//家族史兄弟姐妹
									if(rows[i].answer != "56"){
										document.getElementById("tigshow_11").style.display = "block";
										document.getElementById("mySwitch11").classList.add('mui-active');
										var medicineYn6arr = rows[i].answer;
										if(medicineYn6arr != null){
											var medicineYn6arr_n = medicineYn6arr.split(",");
											if(medicineYn6arr_n.length != 0){
												$ ("#ularry5").each (function (){
													$ (this).find ('li').each (function (){
														var y = medicineYn6arr_n.length-1;
														for (var i=0; i<medicineYn6arr_n.length; i++) {
															if ($(this).val() == medicineYn6arr_n[i]) {
										                        $(this).addClass("on");
																if(medicineYn6arr_n[y] == "53"){
																	document.getElementById("other5_op").style.display="block";
																}else{
																	document.getElementById("other5_op").style.display="none";
																}
										                    }		
														}
													})
												})	
											}
										}
									}else{
										document.getElementById("tigshow_11").style.display = "none";
										document.getElementById("mySwitch11").classList.remove('mui-active');
									}
								}
								if(rows[i].questionId == "275"){
									document.getElementById("other5_text").value = rows[i].answer;
								}
								if(rows[i].questionId == "276"){//家族史子女
									if(rows[i].answer != "56"){
										document.getElementById("tigshow_12").style.display = "block";
										document.getElementById("mySwitch12").classList.add('mui-active');
										var medicineYn7arr = rows[i].answer;
										if(medicineYn7arr != null){
											var medicineYn7arr_n = medicineYn7arr.split(",");
											if(medicineYn7arr_n.length != 0){
												$ ("#ularry6").each (function (){
													$ (this).find ('li').each (function (){
														var y = medicineYn7arr_n.length-1;
														for (var i=0; i<medicineYn7arr_n.length; i++) {
															if ($(this).val() == medicineYn7arr_n[i]) {
										                        $(this).addClass("on");
																if(medicineYn7arr_n[y] == "53"){
																	document.getElementById("other6_op").style.display="block";
																}else{
																	document.getElementById("other6_op").style.display="none";
																}
										                    }		
														}
													})
												})	
											}
										}
									}else{
										document.getElementById("tigshow_12").style.display = "none";
										document.getElementById("mySwitch12").classList.remove('mui-active');
									}
								}
								if(rows[i].questionId == "277"){
									document.getElementById("other6_text").value = rows[i].answer;
								}
								if(rows[i].questionId == "20"){//遗传病
									if(rows[i].answerId != "56"){
										document.getElementById("tigshow_13").style.display = "block";
										document.getElementById("mySwitch13").classList.add('mui-active');
									}else{
										document.getElementById("tigshow_13").style.display = "none";
										document.getElementById("mySwitch13").classList.remove('mui-active');
									}
								}
								if(rows[i].questionId == "21"){
									document.getElementById("other6-1_text").value = rows[i].answer;
								}
								if(rows[i].questionId == "22"){//残疾情况
									if(rows[i].answer != "56"){
										document.getElementById("tigshow_14").style.display = "block";
										document.getElementById("mySwitch14").classList.add('mui-active');
										var medicineYn9arr = rows[i].answer;
										if(medicineYn9arr != null){
											var medicineYn9arr_n = medicineYn9arr.split(",");
											if(medicineYn9arr_n.length != 0){
												$ ("#ularry7").each (function (){
													$ (this).find ('li').each (function (){
														var y = medicineYn9arr_n.length-1;
														for (var i=0; i<medicineYn9arr_n.length; i++) {
															if ($(this).val() == medicineYn9arr_n[i]) {
										                        $(this).addClass("on");
																if(medicineYn9arr_n[y] == "482"){
																	document.getElementById("other7_op").style.display="block";
																}else{
																	document.getElementById("other7_op").style.display="none";
																}
										                    }		
														}
													})
												})	
											}
										}
									}else{
										document.getElementById("tigshow_14").style.display = "none";
										document.getElementById("mySwitch14").classList.remove('mui-active');
									}
								}
								if(rows[i].questionId == "23"){
									document.getElementById("other7_text").value = rows[i].answer;
								}
								if(rows[i].questionId == "529"){//排风设备
									var rowsexhaust=resultall.r8
									for (var j=0; j<rowsexhaust.length; j++) {
										if(rows[i].answerId == rowsexhaust[j].value){
											document.getElementById("result27").value = rowsexhaust[j].text;
										}
									}
								}
								if(rows[i].questionId == "530"){//燃料类型
									var rowsfuel=resultall.r9
									for (var j=0; j<rowsfuel.length; j++) {
										if(rows[i].answerId == rowsfuel[j].value){
											document.getElementById("result28").value = rowsfuel[j].text;
										}
									}
								}
								if(rows[i].questionId == "531"){//饮水
									var rowswater=resultall.r10
									for (var j=0; j<rowswater.length; j++) {
										if(rows[i].answerId == rowswater[j].value){
											document.getElementById("result29").value = rowswater[j].text;
										}
									}
								}
								if(rows[i].questionId == "532"){//厕所
									var rowstoilet=resultall.r11
									for (var j=0; j<rowstoilet.length; j++) {
										if(rows[i].answerId == rowstoilet[j].value){
											document.getElementById("result30").value = rowstoilet[j].text;
										}
									}
								}
								if(rows[i].questionId == "533"){//禽畜
									var rowslivestock=resultall.r12
									for (var j=0; j<rowslivestock.length; j++) {
										if(rows[i].answerId == rowslivestock[j].value){
											document.getElementById("result31").value = rowslivestock[j].text;
										}
									}
								}
							};
						}else{
							alert(data.message);
						}
					},
					error:function(xhr,type,errorThrown){
						
					}
				})
			});	
			requestDrugTimes = document.getElementById("requestDrugTimes");
			realDrugTimes = document.getElementById("realDrugTimes");

			mui.init()
				(function($) {
				$.init();
				var result = $('#result')[0];
				var btns = $('.btn');
				btns.each(function(i, btn) {
					btn.addEventListener('tap', function() {
						var _self = this;
						if(_self.picker) {
							_self.picker.show(function (rs) {
								result.innerText = rs.text;
								_self.picker.dispose();
								_self.picker = null;
							});
						} else {
							if(i == 1){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'1',text:'正常'},{value:'3',text:'死亡'}]);
								 picker.show(function (selectItems) {
									 $('#enableFlag')[0].value = selectItems[0].text;
									 result = selectItems[0].value;
									 if(result == "3"){
										document.getElementById("information").style.display="none";
										document.getElementById("enableFlag_op").style.display="block";
									 }else{
										document.getElementById("information").style.display="block";
										document.getElementById("enableFlag_op").style.display="none";
									 }
								  })
							}else if(i == 2){
								var optionsJson = this.getAttribute('data-options') || '{}';
								var options = JSON.parse(optionsJson);
								var id = this.getAttribute('id');
								_self.picker = new $.DtPicker(options);
								_self.picker.show(function(rs) {
									$('#death_time')[0].value = rs.text;
									_self.picker.dispose();
									_self.picker = null;
								});
							}else if(i == 3){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'0',text:' '},{value:'1',text:'不详'},{value:'2',text:'伤寒和副伤寒'},{value:'3',text:'痢疾'},
												{value:'4',text:'肠道其他细菌性传染病'},{value:'5',text:'呼吸道结核'},{value:'6',text:'其他结核'},
												{value:'7',text:'钩端螺旋体病'},{value:'8',text:'破伤风'},{value:'9',text:'百日咳'},
												{value:'10',text:'脑膜炎球菌感染'},{value:'11',text:'败血症'},{value:'12',text:'流行性乙型脑炎'},
												{value:'13',text:'流行性出血热'},{value:'14',text:'麻疹'},{value:'15',text:'病毒性肝炎'},
												{value:'16',text:'艾滋病'},{value:'17',text:'疟疾'},{value:'18',text:'血吸虫病'},
												{value:'19',text:'其他传染病和寄生虫病'},{value:'20',text:'鼻咽癌'},{value:'21',text:'食道癌'},
												{value:'22',text:'胃癌'},{value:'23',text:'结肠、直肠和肛门癌'},{value:'24',text:'肝癌'},
												{value:'25',text:'肺癌'},{value:'26',text:'乳腺癌'},{value:'27',text:'宫颈癌'},
												{value:'28',text:'膀胱癌'},{value:'29',text:'白血病'},{value:'30',text:'良性肿瘤'},
												{value:'31',text:'其他肿瘤'},{value:'32',text:'贫血'},{value:'33',text:'血液、造血器官及免疫的其他疾病'},
												{value:'34',text:'糖尿病'},{value:'35',text:'内分泌、营养和代谢的其他疾病'},{value:'36',text:'精神障碍'},
												{value:'37',text:'脑膜炎'},{value:'38',text:'神经系统的其他疾病'},{value:'39',text:'急性风湿热'},
												{value:'40',text:'慢性风湿性心脏病'},{value:'41',text:'高血压性心脏病'},{value:'42',text:'急性心肌梗死'},
												{value:'43',text:'其他冠心病'},{value:'44',text:'肺源性心脏病'},{value:'45',text:'其他心脏病'},
												{value:'46',text:'其他高血压病'},{value:'47',text:'脑血管病'},{value:'48',text:'循环系统的其他疾病'},
												{value:'49',text:'肺炎'},{value:'50',text:'慢性下呼吸道疾病'},{value:'51',text:'尘肺'},
												{value:'52',text:'呼吸系统的其他疾病'},{value:'53',text:'胃和十二指肠溃疡'},{value:'54',text:'阑尾炎'},
												{value:'55',text:'肠梗阻'},{value:'56',text:'肝疾病'},{value:'57',text:'消化系统的其他疾病'},
												{value:'58',text:'肌肉骨骼和结缔组织疾病'},{value:'59',text:'肾小球和肾小管间质疾病'},{value:'60',text:'前列腺增生'},
												{value:'61',text:'泌尿生殖系统的其他疾病'},{value:'62',text:'流产'},{value:'63',text:'妊娠高血压综合征'},
												{value:'64',text:'梗阻性分娩'},{value:'65',text:'产后出血'},{value:'66',text:'孕妇内科合并症'},
												{value:'67',text:'羊水栓塞'},{value:'68',text:'母体产伤'},{value:'69',text:'产褥期感染'},
												{value:'70',text:'间接产科原因计'},{value:'71',text:'妊娠、分娩和产褥期的其他情况'},{value:'72',text:'早产儿和未成熟儿'},
												{value:'73',text:'新生儿产伤和窒息'},{value:'74',text:'新生儿溶血性疾病'},{value:'75',text:'新生儿硬化病'},
												{value:'76',text:'起源于围生期的其他情况'},{value:'77',text:'先天性心脏病'},{value:'78',text:'其他先天畸形、变形和染色体异常'},
												{value:'79',text:'诊断不明'},{value:'80',text:'其他疾病'},{value:'81',text:'机动车辆交通事故'},
												{value:'82',text:'机动车以外的运输事故'},{value:'83',text:'意外中毒'},{value:'84',text:'意外跌落'},
												{value:'85',text:'火灾'},{value:'86',text:'由自然环境因素所致的意外事故'},{value:'87',text:'淹死'},
												{value:'88',text:'意外的机械性窒息'},{value:'89',text:'砸死'},{value:'90',text:'由机器切割和穿刺工具所致的意外事故'},
												{value:'91',text:'触电'},{value:'92',text:'其他意外事故和有效伤害'},{value:'93',text:'自杀'},{value:'94',text:'被杀'}]);
								 picker.show(function (selectItems) {
									 $('#death_name')[0].value = selectItems[0].text;
								  })
							}else if(i == 4){
								var picker = new mui.PopPicker();
								 picker.setData([{value:doctorId,text:doctorName}]);
								 picker.show(function (selectItems) {
									 $('#result0')[0].value = selectItems[0].text;
									 result0 = selectItems[0];
								  })
							}else if(i == 5){
								var picker = new mui.PopPicker();
								 picker.setData([{value:doctorId,text:doctorName}]);
								 picker.show(function (selectItems) {
									 $('#result1')[0].value = selectItems[0].text;
								  })
							}else if(i == 6){
								var optionsJson = this.getAttribute('data-options') || '{}';
								var options = JSON.parse(optionsJson);
								var id = this.getAttribute('id');
								_self.picker = new $.DtPicker(options);
								_self.picker.show(function(rs) {
									$('#result2')[0].value = rs.text;
									_self.picker.dispose();
									_self.picker = null;
								});
							}else if(i == 7){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'1',text:'户籍'},{value:'2',text:'非户籍'}]);
								 picker.show(function (selectItems) {
									 $('#result3')[0].value = selectItems[0].text;
								  })
							}else if(i == 8){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'01',text:'汉族'},{value:'02',text:'蒙古族'},{value:'03',text:'回族'},
												{value:'04',text:'藏族'},{value:'05',text:'维吾尔族'},{value:'06',text:'苗族'},
												{value:'07',text:'彝族'},{value:'08',text:'壮族'},{value:'09',text:'布依族'},
												{value:'10',text:'朝鲜族'},{value:'11',text:'满族'},{value:'12',text:'侗族'},
												{value:'13',text:'瑶族'},{value:'14',text:'白族'},{value:'15',text:'土家族'},
												{value:'16',text:'哈尼族'},{value:'17',text:'哈萨克族'},{value:'18',text:'傣族'},
												{value:'19',text:'黎族'},{value:'20',text:'僳僳族'},{value:'21',text:'佤族'},
												{value:'22',text:'畲族'},{value:'23',text:'高山族'},{value:'24',text:'拉祜族'},
												{value:'25',text:'水族'},{value:'26',text:'东乡族'},{value:'27',text:'纳西族'},
												{value:'28',text:'景颇族'},{value:'29',text:'柯尔克孜族'},{value:'30',text:'土族'},
												{value:'31',text:'达斡尔族'},{value:'32',text:'仫佬族'},{value:'33',text:'羌族'},
												{value:'34',text:'布朗族'},{value:'35',text:'撒拉族'},{value:'36',text:'毛难族'},
												{value:'37',text:'仡佬族'},{value:'38',text:'锡伯族'},{value:'39',text:'阿昌族'},
												{value:'40',text:'普米族'},{value:'41',text:'塔吉克族'},{value:'42',text:'怒族'},
												{value:'43',text:'乌孜别克族'},{value:'44',text:'俄罗斯族'},{value:'45',text:'鄂温克族'},
												{value:'46',text:'德昂族'},{value:'47',text:'保安族'},{value:'48',text:'裕固族'},
												{value:'49',text:'京族'},{value:'50',text:'塔尔族'},{value:'51',text:'独龙族'},
												{value:'52',text:'鄂伦春族'},{value:'53',text:'赫哲族'},{value:'54',text:'门巴族'},
												{value:'55',text:'珞巴族'},{value:'56',text:'基诺族'},{value:'57',text:'外国血统'},
												{value:'58',text:'其它'}]);
								 picker.show(function (selectItems) {
									 $('#result4')[0].value = selectItems[0].text;
								  })
							}else if(i == 9){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'3',text:'A型'},{value:'4',text:'B型'},{value:'5',text:'O型'},{value:'6',text:'AB型'},{value:'16',text:'不详'}]);
								 picker.show(function (selectItems) {
									 $('#result5')[0].value = selectItems[0].text;
								  })
							}else if(i == 10){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'9',text:'阴性'},{value:'8',text:'阳性'},{value:'16',text:'不详'}]);
								 picker.show(function (selectItems) {
									 $('#result6')[0].value = selectItems[0].text;
								  })
							}else if(i == 11){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'11',text:'文盲及半文盲'},{value:'12',text:'小学'},{value:'13',text:'初中'},
												{value:'581',text:'高中'},{value:'582',text:'技工学校'},{value:'583',text:'中等专业学校'},
												{value:'584',text:'大学专科和专业学校'},{value:'585',text:'大学本科'},{value:'586',text:'研究生'},
												{value:'16',text:'不详'}]);
								 picker.show(function (selectItems) {
									 $('#result7')[0].value = selectItems[0].text;
								  })
							}else if(i == 12){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'426',text:'国家机关、党群组织、企业、事业单位负责人'},{value:'427',text:'专业技术人员'},{value:'428',text:'办事人员和有关人员'},
												{value:'429',text:'商业、服务业人员'},{value:'430',text:'农、林、牧、渔、水利业生产人员'},{value:'431',text:'生产、运输设备操作人员及有关人员'},
												{value:'432',text:'军人'},{value:'433',text:'不便分类的其它从业人员'},{value:'587',text:'无业人员'}]);
								 picker.show(function (selectItems) {
									 $('#result8')[0].value = selectItems[0].text;
								  })
							}else if(i == 13){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'25',text:'未婚'},{value:'26',text:'已婚'},{value:'27',text:'丧偶'},{value:'28',text:'离婚'},{value:'29',text:'未说明的婚姻状况'}]);
								 picker.show(function (selectItems) {
									 $('#result9')[0].value = selectItems[0].text;
								  })
							}else if(i == 31){//厨房排风设备
								var picker = new mui.PopPicker();
								 picker.setData([{value:'56',text:'无'},{value:'446',text:'油烟机'},{value:'447',text:'换气扇'},{value:'448',text:'烟囱'}]);
								 picker.show(function (selectItems) {
									 $('#result27')[0].value = selectItems[0].text;
								  })
							}else if(i == 32){//燃料类型
								var picker = new mui.PopPicker();
								 picker.setData([{value:'449',text:'液化气'},{value:'450',text:'煤'},{value:'451',text:'天然气'},{value:'452',text:'沼气'},{value:'453',text:'柴火'},{value:'454',text:'其他'}]);
								 picker.show(function (selectItems) {
									 $('#result28')[0].value = selectItems[0].text;
								  })
							}else if(i == 33){//饮水
								var picker = new mui.PopPicker();
								 picker.setData([{value:'455',text:'自来水'},{value:'456',text:'经净化过的水'},{value:'457',text:'井水'},{value:'458',text:'河湖水'},{value:'459',text:'塘水'},{value:'460',text:'其他'}]);
								 picker.show(function (selectItems) {
									 $('#result29')[0].value = selectItems[0].text;
								  })
							}else if(i == 34){//厕所环境
								var picker = new mui.PopPicker();
								 picker.setData([{value:'461',text:'卫生厕所'},{value:'462',text:'一格或二格粪池式'},{value:'463',text:'马桶'},{value:'464',text:'露天粪坑'},{value:'465',text:'简易棚厕'}]);
								 picker.show(function (selectItems) {
									 $('#result30')[0].value = selectItems[0].text;
								  })
							}else if(i == 35){//厕所环境
								var picker = new mui.PopPicker();
								 picker.setData([{value:'56',text:'无'},{value:'466',text:'单设'},{value:'467',text:'室内'},{value:'468',text:'室外'}]);
								 picker.show(function (selectItems) {
									 $('#result31')[0].value = selectItems[0].text;
								  })
							}else{
								var optionsJson = this.getAttribute('data-options') || '{}';
								var options = JSON.parse(optionsJson);
								var id = this.getAttribute('id');
								/*
								 * 首次显示时实例化组件
								 * 示例为了简洁，将 options 放在了按钮的 dom 上
								 * 也可以直接通过代码声明 optinos 用于实例化 DtPicker
								 */
								_self.picker = new $.DtPicker(options);
								_self.picker.show(function(rs) {
									/*
									 * rs.value 拼合后的 value
									 * rs.text 拼合后的 text
									 * rs.y 年，可以通过 rs.y.vaue 和 rs.y.text 获取值和文本
									 * rs.m 月，用法同年
									 * rs.d 日，用法同年
									 * rs.h 时，用法同年
									 * rs.i 分（minutes 的第二个字母），用法同年
									 */
									var x = i-4;
									$('#result'+x)[0].value = rs.text;
									/* 
									 * 返回 false 可以阻止选择框的关闭
									 * return false;
									 */
									/*
									 * 释放组件资源，释放后将将不能再操作组件
									 * 通常情况下，不需要示放组件，new DtPicker(options) 后，可以一直使用。
									 * 当前示例，因为内容较多，如不进行资原释放，在某些设备上会较慢。
									 * 所以每次用完便立即调用 dispose 进行释放，下次用时再创建新实例。
									 */
									_self.picker.dispose();
									_self.picker = null;
								});
							}
						}
					}, false);
				});
			})(mui);
			
			//复选框事件
			var medicineYn1 = "";
			var medicineYn2 = "56";
			var medicineYn2_1 = "56";
			var medicineYn2_2 = "56";
			var medicineYn2_3 = "56";
			var medicineYn2_4 = "56";
			var medicineYn3 = "56";
			var medicineYn4 = "56";
			var medicineYn5 = "56";
			var medicineYn6 = "56";
			var medicineYn7 = "56";
			var medicineYn8 = "56";
			var medicineYn9 = "56";
			mui('.mui-ul-check').on('tap', 'li', function(e) {
				if(!this.getAttribute('class')){
					this.classList.add('on')
					//其它付费方式
					if($("#other425").hasClass('on')){
						$("#other425_op").css("display","block");
					}else{
						$("#other425_op").css("display","none");
						$("#other425_text").val("");
					}
					//其它过敏
					if($("#other482").hasClass('on')){
						$("#other482_op").css("display","block");
					}else{
						$("#other482_op").css("display","none");
						$("#other482_text").val("");
					}
					//家族史1
					if($("#other3").hasClass('on')){
						$("#other3_op").css("display","block");
					}else{
						$("#other3_op").css("display","none");
						$("#other3_text").val("");
					}
					//家族史2
					if($("#other4").hasClass('on')){
						$("#other4_op").css("display","block");
					}else{
						$("#other4_op").css("display","none");
						$("#other4_text").val("");
					}
					//家族史3
					if($("#other5").hasClass('on')){
						$("#other5_op").css("display","block");
					}else{
						$("#other5_op").css("display","none");
						$("#other5_text").val("");
					}
					//家族史4
					if($("#other6").hasClass('on')){
						$("#other6_op").css("display","block");
					}else{
						$("#other6_op").css("display","none");
						$("#other6_text").val("");
					}
					//残疾情况
					if($("#other7").hasClass('on')){
						$("#other7_op").css("display","block");
					}else{
						$("#other7_op").css("display","none");
						$("#other7_text").val("");
					}
				}else{
					this.classList.remove('on');
					//其它付费方式
					if($("#other425").hasClass('on')){
						$("#other425_op").css("display","block");
					}else{
						$("#other425_op").css("display","none");
						$("#other425_text").val("");
					}
					//其它过敏
					if($("#other482").hasClass('on')){
						$("#other482_op").css("display","block");
					}else{
						$("#other482_op").css("display","none");
						$("#other482_text").val("");
					}
					//家族史1
					if($("#other3").hasClass('on')){
						$("#other3_op").css("display","block");
					}else{
						$("#other3_op").css("display","none");
						$("#other3_text").val("");
					}
					//家族史2
					if($("#other4").hasClass('on')){
						$("#other4_op").css("display","block");
					}else{
						$("#other4_op").css("display","none");
						$("#other4_text").val("");
					}
					//家族史3
					if($("#other5").hasClass('on')){
						$("#other5_op").css("display","block");
					}else{
						$("#other5_op").css("display","none");
						$("#other5_text").val("");
					}
					//家族史4
					if($("#other6").hasClass('on')){
						$("#other6_op").css("display","block");
					}else{
						$("#other6_op").css("display","none");
						$("#other6_text").val("");
					}
					//残疾情况
					if($("#other7").hasClass('on')){
						$("#other7_op").css("display","block");
					}else{
						$("#other7_op").css("display","none");
						$("#other7_text").val("");
					}
				}
			});
			mui('.mui-ul-check_1').on('tap', 'li', function(e) {
				if(!this.getAttribute('class')){
					this.classList.add('on')
					$(this).siblings().css({"display":"block"});
				}else{
					this.classList.remove('on');
					$(this).siblings().css({"display":"none"});
					$(this).siblings("a").children("input").val("");
					$(this).siblings("input").val("");
				}
			});
			//弹窗
			/* document.getElementById("popbtm").addEventListener("tap", function() {
				//调用隐藏/显示弹出层
				mui("#popover").popover('toggle', document.getElementById("Popup"));
			}) */
			/* $(".mui-switch").bind("toggle",function(event){
				console.log(this)
			}) */
			//切换3
			document.getElementById("mySwitch3").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_3").style.display="block";
					medicineYn2 = ""
				}else{
					document.getElementById("tigshow_3").style.display="none";
					medicineYn2 = "56"
					$ ("#ularry1").find ('.on').each (function (){
						this.classList.remove('on');
					});
					$("#other482_op").css("display","none");
					$("#other482_text").val("");
				}
			})
			//切换4
			document.getElementById("mySwitch4").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_4").style.display="block";
					medicineYn3 = ""
				}else{
					document.getElementById("tigshow_4").style.display="none";
					medicineYn3 = "56"
					$ ("#ularry2").find ('.on').each (function (){
						this.classList.remove('on');
					});
					$("#other482_op").css("display","none");
					$("#other482_text").val("");
				}
			})
			//切换5
			document.getElementById("mySwitch5").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_5").style.display="block";
					medicineYn2_1 = "";
				}else{
					document.getElementById("tigshow_5").style.display="none";
					medicineYn2_1 = "56";
					$ ("#ularry1_1").find ('.on').each (function (){
						this.classList.remove('on');
					});
					$("#ularry1_1 input").val("");
				}
			})
			//切换6
			document.getElementById("mySwitch6").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_6").style.display="block";
					medicineYn2_2 = "55";
				}else{
					document.getElementById("tigshow_6").style.display="none";
					medicineYn2_2 = "56";
					$("#tigshow_6 input").val("");
				}
			})
			//切换7
			document.getElementById("mySwitch7").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_7").style.display="block";
					medicineYn2_3 = "55";
				}else{
					document.getElementById("tigshow_7").style.display="none";
					medicineYn2_3 = "56";
					$("#tigshow_7 input").val("");
				}
			})
			//切换8
			document.getElementById("mySwitch8").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_8").style.display="block";
					medicineYn2_4 = "55";
				}else{
					document.getElementById("tigshow_8").style.display="none";
					medicineYn2_4 = "56";
					$("#tigshow_8 input").val("");
				}
			})
			//切换9
			document.getElementById("mySwitch9").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_9").style.display="block";
					medicineYn4 = "";
				}else{
					document.getElementById("tigshow_9").style.display="none";
					medicineYn4 = "56";
					$ ("#ularry3").find ('.on').each (function (){
						this.classList.remove('on');
					});
					//家族史1
						$("#other3_op").css("display","none");
						$("#other3_text").val("");
				}
			})
			//切换10
			document.getElementById("mySwitch10").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_10").style.display="block";
					medicineYn5 = "";
				}else{
					document.getElementById("tigshow_10").style.display="none";
					medicineYn5 = "56";
					$ ("#ularry4").find ('.on').each (function (){
						this.classList.remove('on');
					});
					//家族史2
						$("#other4_op").css("display","none");
						$("#other4_text").val("");
				}
			})
			//切换11
			document.getElementById("mySwitch11").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_11").style.display="block";
					medicineYn6 = "";
				}else{
					document.getElementById("tigshow_11").style.display="none";
					medicineYn6 = "56";
					$ ("#ularry5").find ('.on').each (function (){
						this.classList.remove('on');
					});
					//家族史3
					$("#other5_op").css("display","none");
					$("#other5_text").val("");
				}
			})
			//切换12
			document.getElementById("mySwitch12").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_12").style.display="block";
					medicineYn7 = "";
				}else{
					document.getElementById("tigshow_12").style.display="none";
					medicineYn7 = "56";
					$ ("#ularry6").find ('.on').each (function (){
						this.classList.remove('on');
					});
					//家族史4
						$("#other6_op").css("display","none");
						$("#other6_text").val("");
				}
			})
			//切换13
			document.getElementById("mySwitch13").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_13").style.display="block";
					medicineYn8 = "55";
				}else{
					document.getElementById("tigshow_13").style.display="none";
					medicineYn8 = "56";
					$("#other6-1_text").val("");
				}
			})
			//切换14
			document.getElementById("mySwitch14").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_14").style.display="block";
					medicineYn9 = "";
				}else{
					document.getElementById("tigshow_14").style.display="none";
					medicineYn9 = "56";
					$ ("#ularry7").find ('.on').each (function (){
						this.classList.remove('on');
					});
					//残疾情况
					$("#other7_op").css("display","none");
					$("#other7_text").val("");
				}
			})
			var object_all ={}
			var exhaust = "0";
			var fuel = "0";
			var water = "0";
			var toilet = "0";
			var livestock = "0";
			//提交
			function submit(){
				for(var j=10; j<27; j++){
					if($("#result"+j)[0].value != ""){
						object_all[j] = $("#result"+j)[0].value+" 00:00:00";
					}else{
						object_all[j] = "";
					}
				}//日期选项
				nhCode = $('#Heal')[0].value;//农合号
				ehrCode = $('#archives')[0].value;//健康档案号
				name = $('#name-1')[0].value;//居民姓名
				idCard = $('#card')[0].value;//身份证
				familyRelation = $('#fam')[0].value;//家庭关系
				sex = $('#sex-1')[0].value;//性别
				var result3_arr = $('#result3')[0].value;
				for(var re=0; re<resultall.r1.length; re++){
					if(result3_arr == resultall.r1[re].text){
						result3 = resultall.r1[re].value;//常住类型
					}
				}
				var nation_arr = $('#result4')[0].value;
				for(var re=0; re<resultall.r2.length; re++){
					if(nation_arr == resultall.r2[re].text){
						nation = resultall.r2[re].value;//民族
					}
				}
				var result5_arr = $('#result5')[0].value;
				for(var re=0; re<resultall.r3.length; re++){
					if(result5_arr == resultall.r3[re].text){
						result5 = resultall.r3[re].value;//血型
					}
				}
				var result6_arr = $('#result6')[0].value;
				for(var re=0; re<resultall.r4.length; re++){
					if(result6_arr == resultall.r4[re].text){
						result6 = resultall.r4[re].value;//RH
					}
				}
				var education_arr = $('#result7')[0].value;
				for(var re=0; re<resultall.r5.length; re++){
					if(education_arr == resultall.r5[re].text){
						education = resultall.r5[re].value;//教育程度
					}
				}
				var profession_arr = $('#result8')[0].value;
				for(var re=0; re<resultall.r6.length; re++){
					if(profession_arr == resultall.r6[re].text){
						profession = resultall.r6[re].value;//职业
					}
				}
				var maritalStatus_arr = $('#result9')[0].value;
				for(var re=0; re<resultall.r7.length; re++){
					if(maritalStatus_arr == resultall.r7[re].text){
						maritalStatus = resultall.r7[re].value;//婚姻状态
					}
				}
				var exhaust_arr = $('#result27')[0].value;
				for(var re=0; re<resultall.r8.length; re++){
					if(exhaust_arr == resultall.r8[re].text){
						exhaust = resultall.r8[re].value;//排风设备
					}
				}
				var fuel_arr = $('#result28')[0].value;
				for(var re=0; re<resultall.r9.length; re++){
					if(fuel_arr == resultall.r9[re].text){
						fuel = resultall.r9[re].value;//燃料类型
					}
				}
				var water_arr = $('#result29')[0].value;
				for(var re=0; re<resultall.r10.length; re++){
					if(water_arr == resultall.r10[re].text){
						water = resultall.r10[re].value;//饮水
					}
				}
				var toilet_arr = $('#result30')[0].value;
				for(var re=0; re<resultall.r11.length; re++){
					if(toilet_arr == resultall.r11[re].text){
						toilet = resultall.r11[re].value;//厕所
					}
				}
				var livestock_arr = $('#result31')[0].value;
				for(var re=0; re<resultall.r12.length; re++){
					if(livestock_arr == resultall.r12[re].text){
						livestock = resultall.r12[re].value;//禽畜栏
					}
				}
				var enableFlag_arr = $('#enableFlag')[0].value;
				for(var re=0; re<resultall.r13.length; re++){
					if(enableFlag_arr == resultall.r13[re].text){
						enableFlag = resultall.r13[re].value;
					}
				}//状态
				var death_name_arr = $('#death_name')[0].value;
				for(var re=0; re<resultall.r14.length; re++){
					if(death_name_arr == resultall.r14[re].text){
						deathreasonId = resultall.r14[re].value;
					}
				}//死亡原因ID
				if($("#death_time")[0].value != ""){
					deathDate = $("#death_time")[0].value+" 00:00:00";
				}//死亡日期
				remark = $("#death_note")[0].value;//备注
				masterDoctor = $('#result1')[0].value;//责任医生姓名
				masterDoctorId = masterDoctorId//责任医生ID
				telephone = $('#tel')[0].value;//电话
				homeAddress = $('#ad-1')[0].value;//现具体住址
				ehrCreateUser = $('#result0')[0].value;//建档人姓名
				questionCreateDate = createDate;//问卷创建时间
				questionModifyDate = modifyDate;//问卷修改时间
				ehrCreateDate = createDate;//健康档案创建时间
				vcFlag = "1";//人口类型
				paperposition = $('#Paper')[0].value;//纸质存放位置
				paperdate = $("#result2")[0].value;//纸质建档日期
				//复选框1
				medicineYn1 = "";
				$ ("#ularry").find ('.on').each (function (){
					if($(this).length != 0){
						medicineYn1 += $(this).val() + ",";	
					}
				});
				//去掉最后一个逗号(如果不需要去掉，就不用写)
				if (medicineYn1.length > 0) {
					medicineYn1 = medicineYn1.substr(0,medicineYn1.length - 1);
				}else{
					medicineYn1 = "0";
				}
				//复选框2
				medicineYn2 = "";
				$ ("#ularry1").find ('.on').each (function (){
					medicineYn2 += $(this).val() + ",";
				});
				//去掉最后一个逗号(如果不需要去掉，就不用写)
				if (medicineYn2.length > 0) {
					medicineYn2 = medicineYn2.substr(0,medicineYn2.length - 1);
				}else{
					medicineYn2 = "56";
				}
				//复选框2-1
				medicineYn2_1 = "";
				$ ("#ularry1_1").find ('.on').each (function (){
					medicineYn2_1 += $(this).val() + ",";
				});
				//去掉最后一个逗号(如果不需要去掉，就不用写)
				if (medicineYn2_1.length > 0) {
					medicineYn2_1 = medicineYn2_1.substr(0,medicineYn2_1.length - 1);
				}else{
					medicineYn2_1 = "56";
				}
				//复选框2-2
				if ($("#mySwitch6").hasClass("mui-active")) {
					console.log("123456789")
					medicineYn2_2 = "55";
				}else{
					medicineYn2_2 = "56";
				}
				//复选框2-3
				if ($("#mySwitch7").hasClass("mui-active")) {
					medicineYn2_3 = "55";
				}else{
					medicineYn2_3 = "56";
				}
				//复选框2-4
				if ($("#mySwitch8").hasClass("mui-active")) {
					medicineYn2_4 = "55";
				}else{
					medicineYn2_4 = "56";
				}
				//复选框3
				medicineYn3 = "";
				$ ("#ularry2").find ('.on').each (function (){
					medicineYn3 += $(this).val() + ",";
				});
				//去掉最后一个逗号(如果不需要去掉，就不用写)
				if (medicineYn3.length > 0) {
					medicineYn3 = medicineYn3.substr(0,medicineYn3.length - 1);
				}else{
					medicineYn3 = "56";
				}
				//复选框4
				medicineYn4 = "";
				$ ("#ularry3").find ('.on').each (function (){
					medicineYn4 += $(this).val() + ",";
				});
				//去掉最后一个逗号(如果不需要去掉，就不用写)
				if (medicineYn4.length > 0) {
					medicineYn4 = medicineYn4.substr(0,medicineYn4.length - 1);
				}else{
					medicineYn4 = "56";
				}
				//复选框5
				medicineYn5 = "";
				$ ("#ularry4").find ('.on').each (function (){
					medicineYn5 += $(this).val() + ",";
				});
				//去掉最后一个逗号(如果不需要去掉，就不用写)
				if (medicineYn5.length > 0) {
					medicineYn5 = medicineYn5.substr(0,medicineYn5.length - 1);
				}else{
					medicineYn5 = "56";
				}
				//复选框6
				medicineYn6 = "";
				$ ("#ularry5").find ('.on').each (function (){
					medicineYn6 += $(this).val() + ",";
				});
				//去掉最后一个逗号(如果不需要去掉，就不用写)
				if (medicineYn6.length > 0) {
					medicineYn6 = medicineYn6.substr(0,medicineYn6.length - 1);
				}else{
					medicineYn6 = "56";
				}
				//复选框7
				medicineYn7 = "";
				$ ("#ularry6").find ('.on').each (function (){
					medicineYn7 += $(this).val() + ",";
				});
				//去掉最后一个逗号(如果不需要去掉，就不用写)
				if (medicineYn7.length > 0) {
					medicineYn7 = medicineYn7.substr(0,medicineYn7.length - 1);
				}else{
					medicineYn7 = "56";
				}
				console.log(medicineYn7);
				//复选框8
				medicineYn9 = "";
				$ ("#ularry7").find ('.on').each (function (){
					medicineYn9 += $(this).val() + ",";
				});
				//去掉最后一个逗号(如果不需要去掉，就不用写)
				if (medicineYn9.length > 0) {
					medicineYn9 = medicineYn9.substr(0,medicineYn9.length - 1);
				}else{
					medicineYn9 = "56";
				}
				var dataobj=[
					//本人电话
					{"id": id,
					"ehrId": ehrId,
					"questionId": "25",
					"answerId": "0",
					"answer": $('#selftel')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//工作单位
					{"id": id,
					"ehrId": ehrId,
					"questionId": "314",
					"answerId": "0",
					"answer": $('#workUnit')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//联系人姓名
					{"id": id,
					"ehrId": ehrId,
					"questionId": "545",
					"answerId": "0",
					"answer": $('#contactname')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//联系人电话
					{"id": id,
					"ehrId": ehrId,
					"questionId": "546",
					"answerId": "0",
					"answer": $('#contacttel')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//常住类型
					{"id": id,
					"ehrId": ehrId,
					"questionId": "10",
					"answerId": result3,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//民族
					{"id": id,
					"ehrId": ehrId,
					"questionId": "11",
					"answerId": nation,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//血型
					{"id": id,
					"ehrId": ehrId,
					"questionId": "13",
					"answerId": result5,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//RH
					{"id": id,
					"ehrId": ehrId,
					"questionId": "26",
					"answerId": result6,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//文化程度
					{"id": id,
					"ehrId": ehrId,
					"questionId": "14",
					"answerId": education,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//职业
					{"id": id,
					"ehrId": ehrId,
					"questionId": "15",
					"answerId": profession,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//婚姻状况
					{"id": id,
					"ehrId": ehrId,
					"questionId": "17",
					"answerId": maritalStatus,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//医疗费用支付方式
					{"id": id,
					"ehrId": ehrId,
					"questionId": "517",
					"answerId": "0",
					"answer": medicineYn1,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//其它医疗费用支付方式
					{"id": id,
					"ehrId": ehrId,
					"questionId": "518",
					"answerId": "0",
					"answer": $('#other425_text')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//药物过敏
					{"id": id,
					"ehrId": ehrId,
					"questionId": "18",
					"answerId": "0",
					"answer": medicineYn2,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//其它药物过敏
					{"id": id,
					"ehrId": ehrId,
					"questionId": "19",
					"answerId": "0",
					"answer": $('#other482_text')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//暴露史
					{"id": id,
					"ehrId": ehrId,
					"questionId": "526",
					"answerId": "0",
					"answer": medicineYn3,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//疾病
					{"id": id,
					"ehrId": ehrId,
					"questionId": "240",
					"answerId": "0",
					"answer": medicineYn2_1,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//疾病1时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "301",
					"answerId": "0",
					"answer": object_all[10],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//疾病2时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "302",
					"answerId": "0",
					"answer": object_all[11],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//疾病3时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "303",
					"answerId": "0",
					"answer": object_all[12],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//疾病4时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "304",
					"answerId": "0",
					"answer": object_all[13],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//疾病5时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "305",
					"answerId": "0",
					"answer": object_all[14],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//疾病6时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "306",
					"answerId": "0",
					"answer": object_all[15],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//疾病7时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "307",
					"answerId": "0",
					"answer": object_all[16],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//疾病8时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "308",
					"answerId": "0",
					"answer": object_all[17],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//疾病9时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "309",
					"answerId": "0",
					"answer": object_all[18],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//疾病10时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "737",
					"answerId": "0",
					"answer": object_all[19],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//疾病11时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "527",
					"answerId": "0",
					"answer": object_all[20],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//肿瘤名
					{"id": id,
					"ehrId": ehrId,
					"questionId": "242",
					"answerId": "0",
					"answer": $('#tumor')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//职业病
					{"id": id,
					"ehrId": ehrId,
					"questionId": "528",
					"answerId": "0",
					"answer": $('#occ')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//其他病
					{"id": id,
					"ehrId": ehrId,
					"questionId": "241",
					"answerId": "0",
					"answer": $('#medical_text')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//手术
					{"id": id,
					"ehrId": ehrId,
					"questionId": "250",
					"answerId": medicineYn2_2,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//手术1名称
					{"id": id,
					"ehrId": ehrId,
					"questionId": "251",
					"answerId": "0",
					"answer": $('#surgery1')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//手术1时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "252",
					"answerId": "0",
					"answer": object_all[21],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//手术2名称
					{"id": id,
					"ehrId": ehrId,
					"questionId": "253",
					"answerId": "0",
					"answer": $('#surgery2')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//手术2时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "254",
					"answerId": "0",
					"answer": object_all[22],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//外伤
					{"id": id,
					"ehrId": ehrId,
					"questionId": "255",
					"answerId": medicineYn2_3,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//外伤1名称
					{"id": id,
					"ehrId": ehrId,
					"questionId": "256",
					"answerId": "0",
					"answer": $('#trauma1')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//外伤1时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "257",
					"answerId": "0",
					"answer": object_all[23],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//外伤2名称
					{"id": id,
					"ehrId": ehrId,
					"questionId": "258",
					"answerId": "0",
					"answer": $('#trauma2')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//外伤2时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "259",
					"answerId": "0",
					"answer": object_all[24],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//输血
					{"id": id,
					"ehrId": ehrId,
					"questionId": "260",
					"answerId": medicineYn2_4,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//输血1原因
					{"id": id,
					"ehrId": ehrId,
					"questionId": "261",
					"answerId": "0",
					"answer": $('#transfusion1')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//输血1时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "262",
					"answerId": "0",
					"answer": object_all[25],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//输血2原因
					{"id": id,
					"ehrId": ehrId,
					"questionId": "263",
					"answerId": "0",
					"answer": $('#transfusion2')[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//输血2时间
					{"id": id,
					"ehrId": ehrId,
					"questionId": "264",
					"answerId": "0",
					"answer": object_all[26],
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//家族史父亲
					{"id": id,
					"ehrId": ehrId,
					"questionId": "270",
					"answerId": "0",
					"answer": medicineYn4,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//家族史父亲其它
					{"id": id,
					"ehrId": ehrId,
					"questionId": "271",
					"answerId": "0",
					"answer": $("#other3_text")[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//家族史母亲
					{"id": id,
					"ehrId": ehrId,
					"questionId": "272",
					"answerId": "0",
					"answer": medicineYn5,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//家族史母亲其它
					{"id": id,
					"ehrId": ehrId,
					"questionId": "273",
					"answerId": "0",
					"answer": $("#other4_text")[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//家族史兄弟姐妹
					{"id": id,
					"ehrId": ehrId,
					"questionId": "274",
					"answerId": "0",
					"answer": medicineYn6,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//家族史兄弟姐妹其它
					{"id": id,
					"ehrId": ehrId,
					"questionId": "275",
					"answerId": "0",
					"answer": $("#other5_text")[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//家族史子女
					{"id": id,
					"ehrId": ehrId,
					"questionId": "276",
					"answerId": "0",
					"answer": medicineYn7,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//家族史子女其它
					{"id": id,
					"ehrId": ehrId,
					"questionId": "277",
					"answerId": "0",
					"answer": $("#other6_text")[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//遗传病史
					{"id": id,
					"ehrId": ehrId,
					"questionId": "20",
					"answerId": "0",
					"answer": medicineYn8,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//遗传病史名称
					{"id": id,
					"ehrId": ehrId,
					"questionId": "21",
					"answerId": "0",
					"answer": $("#other6-1_text")[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//残疾情况
					{"id": id,
					"ehrId": ehrId,
					"questionId": "22",
					"answerId": "0",
					"answer": medicineYn9,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//遗传病史其它
					{"id": id,
					"ehrId": ehrId,
					"questionId": "23",
					"answerId": "0",
					"answer": $("#other7_text")[0].value,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//排风设备
					{"id": id,
					"ehrId": ehrId,
					"questionId": "529",
					"answerId": exhaust,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//燃料类型
					{"id": id,
					"ehrId": ehrId,
					"questionId": "530",
					"answerId": fuel,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//饮水
					{"id": id,
					"ehrId": ehrId,
					"questionId": "531",
					"answerId": water,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//厕所
					{"id": id,
					"ehrId": ehrId,
					"questionId": "532",
					"answerId": toilet,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser},
					//禽畜栏
					{"id": id,
					"ehrId": ehrId,
					"questionId": "533",
					"answerId": livestock,
					"answer": null,
					"createDate": createDate,
					"createUser": createUser,
					"modifyDate": modifyDate,
					"modifyUser": modifyUser}
				]
				console.log(deathDate);
				console.log(deathreasonId);
				console.log(remark);
				$.ajax({
					type: 'post',
					url:getRequestUrl.url+"/mobile/ehr/info/addOrUpdate",
					data:{
						ehrId : ehrId,//编号
						nhCode : nhCode,//农合号
						ehrCode : ehrCode,//健康档案号
						personId : personId,//农合成员ID
						regionId : regionId,//地区ID
						townId : townId,//乡镇ID
						createDate : createDate,//人口数据创建时间
						hospId : hospId,//作废 老健康档案医院ID
						name : name,//居民姓名
						idCard : idCard,//身份证
						familyRelation : familyRelation,//家庭关系
						sex : sex,//性别
						nation : nation,//民族
						education : education,//教育程度
						maritalStatus : maritalStatus,//婚姻状态
						profession : profession,//职业
						workUnit : workUnit,//工作地
						telephone : telephone,//电话
						homeAddress : homeAddress,//现具体住址
						createUser : createUser,//人口创建人ID（档案录入人ID）
						modifyDate : modifyDate,//人口数据修改时间
						modifyUser : modifyUser,//人口数据修改人ID
						questionCreateDate : questionCreateDate,//问卷创建时间
						questionModifyDate : questionModifyDate,//问卷修改时间
						ehrCreateUser : ehrCreateUser,//建档人姓名
						masterDoctor : masterDoctor,//责任医生姓名
						ehrCreateDate : ehrCreateDate,//健康档案创建时间
						enableFlag : enableFlag,//状态
						vcFlag : vcFlag,//人口类型
						ehrModifyDate : ehrModifyDate,//健康档案修改日期
						ehrModifyUser : ehrModifyUser,//健康档案修改人ID
						ehrCreateUserId : ehrCreateUserId,//建档人ID
						masterDoctorId : masterDoctorId,//责任医生ID
						deathDate : deathDate,//死亡日期
						deathreasonId : deathreasonId,//死亡原因ID
						remark : remark,//备注
						paperposition : paperposition,//纸质存放位置
						paperdate : paperdate//纸质建档日期
					},
					dataType:"json",
					success : function(data) {
						if (data.status == 1) {
							alert("提交成功1")
						} else {
							alert(data.message);
						}
					},
					error:function(xhr,type,errorThrown){
						
					}
				});
				$.ajax({
					type: 'post',
					url:getRequestUrl.url+"/mobile/ehr/EhrSPersonAnswer23/addOrUpdate",
					data:JSON.stringify(dataobj),
					dataType:"json",
					contentType : 'application/json;charset=utf-8',
					success : function(data) {
						if(data.status==1){
							alert("提交成功2")
						}else{
							alert(data.message);
						}
					},
					error:function(xhr,type,errorThrown){
						
					}
				});
			}
		</script>
	</body>
</html>